MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 4: Line 4:
.off('click') // in case this code is loaded twice
.off('click') // in case this code is loaded twice
.on('click', function(e){
.on('click', function(e){
$(this).toggleClass('show');
$(this).toggleClass('hide');
}).find('a').on('click', function(e){
}).find('a').on('click', function(e){
e.stopPropagation();
e.stopPropagation();