svnno****@sourc*****
svnno****@sourc*****
2008年 4月 28日 (月) 19:30:55 JST
Revision: 618 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=618 Author: tach Date: 2008-04-28 19:30:55 +0900 (Mon, 28 Apr 2008) Log Message: ----------- fix: it must set-cookie domain both slashdot.jp and .slashdot.jp Modified Paths: -------------- images/all-minified.js images/all-minified.js.jp -------------- next part -------------- Modified: images/all-minified.js =================================================================== --- images/all-minified.js 2008-04-28 10:16:44 UTC (rev 617) +++ images/all-minified.js 2008-04-28 10:30:55 UTC (rev 618) @@ -1523,7 +1523,7 @@ /* remove left menu content-height value */ (function(){ - var content_height_version = "20080428a"; + var content_height_version = "20080428c"; var append = ""; /* ignore if the version is latest */ @@ -1532,16 +1532,20 @@ /* check domain */ get_domain(); - if (!isdomain) - append = "; domain=." + domainname + append = "; domain=." + domainname /* delete cookie if exists and non-zero */ $A(document.cookie.split("; ")).each(function(cookie) { var c = cookie.split("=", 2); - if ( blocks.indexOf(c[0].replace("-content-height$", "")) && c[1] > 0 ) + if ( blocks.indexOf(c[0].replace("-content-height$", "")) && c[1] > 0 ) { document.cookie = c[0] + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + append; + if (isdomain) + document.cookie = c[0] + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT"; + } }); /* remember content-height-version */ document.cookie = "content-height-version=" + content_height_version + "; path=/" + append; + if (isdomain) + document.cookie = "content-height-version=" + content_height_version + "; path=/"; })(); Modified: images/all-minified.js.jp =================================================================== --- images/all-minified.js.jp 2008-04-28 10:16:44 UTC (rev 617) +++ images/all-minified.js.jp 2008-04-28 10:30:55 UTC (rev 618) @@ -2,7 +2,7 @@ /* remove left menu content-height value */ (function(){ - var content_height_version = "20080428a"; + var content_height_version = "20080428c"; var append = ""; /* ignore if the version is latest */ @@ -11,16 +11,20 @@ /* check domain */ get_domain(); - if (!isdomain) - append = "; domain=." + domainname + append = "; domain=." + domainname /* delete cookie if exists and non-zero */ $A(document.cookie.split("; ")).each(function(cookie) { var c = cookie.split("=", 2); - if ( blocks.indexOf(c[0].replace("-content-height$", "")) && c[1] > 0 ) + if ( blocks.indexOf(c[0].replace("-content-height$", "")) && c[1] > 0 ) { document.cookie = c[0] + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + append; + if (isdomain) + document.cookie = c[0] + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT"; + } }); /* remember content-height-version */ document.cookie = "content-height-version=" + content_height_version + "; path=/" + append; + if (isdomain) + document.cookie = "content-height-version=" + content_height_version + "; path=/"; })();