[Slashdotjp-dev 1089] [616] Fix leftmenu height when the menu has been changed

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 4月 28日 (月) 18:56:32 JST


Revision: 616
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=616
Author:   tach
Date:     2008-04-28 18:56:32 +0900 (Mon, 28 Apr 2008)

Log Message:
-----------
Fix leftmenu height when the menu has been changed

Modified Paths:
--------------
    images/all-minified.js

Added Paths:
-----------
    images/all-minified.js.jp


-------------- next part --------------
Modified: images/all-minified.js
===================================================================
--- images/all-minified.js	2008-04-28 07:36:24 UTC (rev 615)
+++ images/all-minified.js	2008-04-28 09:56:32 UTC (rev 616)
@@ -1518,4 +1518,30 @@
 function firehose_save_note(id){var nf=$('note-form-'+id);var nt=$('note-text-'+id);var ni=$('note-input-'+id);var params=[];params['op']='firehose_save_note';params['note']=ni.value;params['id']=id;ajax_update(params,'note-text-'+id);nf.className="hide";nt.className="";}
 function firehose_get_admin_extras(id){var params=[];params['id']=id;params['op']='firehose_get_admin_extras';var handlers={onComplete:json_handler};ajax_update(params,'',handlers);}
 function firehose_get_and_post(id){var params=[];params['id']=id;params['op']='firehose_get_form';firehose_collapse_entry(id);var handlers={onComplete:function(){$('postform-'+id).submit();}};ajax_update(params,'postform-'+id,handlers);}
-function appendToBodytext(text){var obj=$('admin-bodytext');if(obj){obj.className="show";obj.value=obj.value+text;}}
\ No newline at end of file
+function appendToBodytext(text){var obj=$('admin-bodytext');if(obj){obj.className="show";obj.value=obj.value+text;}}
+/* append for slashdot.jp */
+
+/* remove left menu content-height value */
+(function(){
+  var content_height_version = "20080428";
+  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();
+  if (!isdomain)
+    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;
+  });
+
+  /* remember content-height-version */
+  document.cookie = "content-height-version=" + content_height_version + "; path=/" + append;
+})();

Added: images/all-minified.js.jp
===================================================================
--- images/all-minified.js.jp	                        (rev 0)
+++ images/all-minified.js.jp	2008-04-28 09:56:32 UTC (rev 616)
@@ -0,0 +1,26 @@
+/* append for slashdot.jp */
+
+/* remove left menu content-height value */
+(function(){
+  var content_height_version = "20080428";
+  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();
+  if (!isdomain)
+    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;
+  });
+
+  /* remember content-height-version */
+  document.cookie = "content-height-version=" + content_height_version + "; path=/" + append;
+})();


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る