https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113721

Revision: 113721
Author:   jdlrobson
Date:     2012-03-13 13:50:09 +0000 (Tue, 13 Mar 2012)
Log Message:
-----------
update minified version of toggle.js

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/javascripts/toggle.min.js

Modified: trunk/extensions/MobileFrontend/javascripts/toggle.min.js
===================================================================
--- trunk/extensions/MobileFrontend/javascripts/toggle.min.js   2012-03-13 
13:49:19 UTC (rev 113720)
+++ trunk/extensions/MobileFrontend/javascripts/toggle.min.js   2012-03-13 
13:50:09 UTC (rev 113721)
@@ -1 +1 @@
-MobileFrontend.toggle=(function(){var a=MobileFrontend.utils;function c(){var 
l,f,n,m,h=a(".section_heading");window.wm_toggle_section=b;m=a(".section_heading
 button");for(l=0;l<m.length;l++){a(m[l]).remove()}function k(){var 
i=this.id?this.id.split("_")[1]:-1;if(i>-1){b(i)}}function g(p){var 
o,i;o=document.createElement("button");i=document.createTextNode(MobileFrontend.message(p?"expand-section":"collapse-section"));o.className=p?"show":"hide";o.appendChild(i);return
 
o}if(!h){h=[]}else{a(document.body).addClass("togglingEnabled")}for(l=0;l<h.length;l++){n=h[l];n.removeAttribute("onclick");n.insertBefore(g(true),n.firstChild);n.insertBefore(g(false),n.firstChild);a(n).bind("click",k)}function
 j(){var 
i=this.hash||document.location.hash;if(i.indexOf("#")===0){e(i)}}j();for(f=document.getElementsByTagName("a"),l=0;l<f.length;l++){a(f[l]).bind("click",j)}}function
 e(i){var 
g=document.getElementById(i.substr(1)),h,f;if(g){h=g;while(h&&h.className!=="content_block"&&h.className!=="section_heading"){h=h.parentNode}if(h&&h.style.display!=="block"){f=parseInt(h.id.split("_")[1],10);b(f)}}}function
 b(g){var 
f=document.getElementById("section_"+g),l=f.getElementsByTagName("button"),h,j,k;if(a(f).hasClass("openSection")){a(f).removeClass("openSection")}else{a(f).addClass("openSection")}for(h=0,d=["content_","anchor_"];h<=1;h++){k=document.getElementById(d[h]+g);if(k){k.style.display=k.style.display==="block"?"none":"block"}}}c();return{wm_reveal_for_hash:e,wm_toggle_section:b,init:c}})();
\ No newline at end of file
+MobileFrontend.toggle=(function(){var a=MobileFrontend.utils;function c(){var 
l,f,n,m,h=a(".section_heading");window.wm_toggle_section=b;m=a(".section_heading
 button");for(l=0;l<m.length;l++){a(m[l]).remove()}function k(){var 
i=this.id?this.id.split("_")[1]:-1;if(i>-1){b(i)}}function g(p){var 
o,i;o=document.createElement("button");i=document.createTextNode(MobileFrontend.message(p?"expand-section":"collapse-section"));o.className=p?"show":"hide";o.appendChild(i);return
 
o}if(!h){h=[]}else{a(document.body).addClass("togglingEnabled")}for(l=0;l<h.length;l++){n=h[l];n.removeAttribute("onclick");n.insertBefore(g(true),n.firstChild);n.insertBefore(g(false),n.firstChild);a(n).bind("click",k)}function
 j(){var 
i=this.hash||document.location.hash;if(i.indexOf("#")===0){e(i)}}j();for(f=document.getElementsByTagName("a"),l=0;l<f.length;l++){a(f[l]).bind("click",j)}}function
 e(i){var 
g=document.getElementById(i.substr(1)),h,f;if(g){h=g;while(h&&!a(h).hasClass("content_block")&&!a(h).hasClass("section_heading")){h=h.parentNode}if(h&&h.style.display!=="block"){f=parseInt(h.id.split("_")[1],10);b(f)}}}function
 b(g){var 
f=document.getElementById("section_"+g),l=f.getElementsByTagName("button"),h,j,k;if(a(f).hasClass("openSection")){a(f).removeClass("openSection")}else{a(f).addClass("openSection")}for(h=0,d=["content_","anchor_"];h<=1;h++){k=document.getElementById(d[h]+g);if(k){k.style.display=k.style.display==="block"?"none":"block"}}}c();return{wm_reveal_for_hash:e,wm_toggle_section:b,init:c}})();
\ No newline at end of file


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to