https://bugzilla.wikimedia.org/show_bug.cgi?id=21119
--- Comment #3 from akshay chugh <chughaksha...@gmail.com> 2012-03-28 07:51:40 UTC --- Created attachment 10337 --> https://bugzilla.wikimedia.org/attachment.cgi?id=10337 It makes a link in the bottom of the page for the hidden category links Two changes have been made to achieve this effect : 1. Skin.php if ( isset( $allCats['hidden'] ) ) { .... ..... $s.='<a id="mw-toggle-cat" href="javascript:void(0)"><i>Show hidden categories</i></a>'; .... .... } This statement adds an anchor element just below the div(#mw-normal-catlinks) 2. Mediawiki.page.ready.js .... ... var toggleCatBool = true; $("#mw-toggle-cat").click(function(event){ $("#mw-hidden-catlinks").toggle(); var text=''; if(toggleCatBool) text='Hide Hidden Category Links'; else text='Show Hidden Category Links'; document.getElementById("mw-toggle-cat").innerHTML='<i>'+text+'</i>'; toggleCatBool=!toggleCatBool; }); .... .... This manages the toggling behavior of div(#mw-hidden-catlinks) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l