Personal tools
You are here: Home Zope&Plone Tips ファイル置き場 atslidesnow.patch (SlideShow表示対応版)
Document Actions

atslidesnow.patch (SlideShow表示対応版)

by maru last modified 2007-04-17 15:15

atslideshow.jsの差分patch (/portal_skins/ATPhoto/atslideshow.js)

Click here to get the file

Size 1 kB - File type text/x-patch

File contents

--- atslideshow.js	2007-04-17 14:40:10.000000000 +0900
+++ new_atslideshow.js	2007-04-17 14:40:10.000000000 +0900
@@ -45,7 +45,8 @@
 function SlideShow_updateHTML() {
    /* update innerHTML */
    var nodes;
-   document.title=Batch.current.Title;
+   var pos = document.title.indexOf(' — ',0);
+   document.title=Batch.current.Title+document.title.substring(pos);
    nodes = cssQuery('h1.documentFirstHeading');
    if (nodes.length > 0) { nodes[0].innerHTML=Batch.current.Title; }
    nodes = cssQuery('div.documentDescription');