svnno****@sourc*****
svnno****@sourc*****
2008年 12月 1日 (月) 20:31:26 JST
Revision: 855 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=855 Author: tach Date: 2008-12-01 20:31:26 +0900 (Mon, 01 Dec 2008) Log Message: ----------- remove left menu content-height management code (cont.) Modified Paths: -------------- test/images/all-minified.js -------------- next part -------------- Modified: test/images/all-minified.js =================================================================== --- test/images/all-minified.js 2008-12-01 11:24:11 UTC (rev 854) +++ test/images/all-minified.js 2008-12-01 11:31:26 UTC (rev 855) @@ -1645,32 +1645,3 @@ function appendToMedia(text){var obj=$dom('admin-media');if(obj){obj.className="show";obj.value=obj.value+text;}} $(function(){if($.browser.safari||$.browser.opera){$('.edit a').css('margin-top','0pt');}}); /* append for slashdot.jp */ - -/* remove left menu content-height value */ -(function(){ - var content_height_version = "20080428c"; - var append = ""; - - /* ignore if the version is latest */ - if ( document.cookie.indexOf("content-height-version=" + content_height_version) > 0 ) - return null; - - /* check domain */ - get_domain(); - 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 ) { - 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=/"; -})();