Difference between revisions of "MediaWiki:Common.js"

I do not know anything about javascript. This is going to be fun.
(I do not know anything about javascript. This is going to be fun.)
Tag: Reverted
Line 108: Line 108:
         };
         };
})();
})();
/** prettybutton **************************************
*
* Description:  if button is clicked, add prettybutton-clicked. if clicked again, remove it
* Maintainers:
*/
$("#prettybutton").click(function() {
  $("#prettybutton").addClass('prettybutton-clicked');
});
$("#prettybutton-clicked").click(function() {
  $("#prettybutton-clicked").removeClass('prettybutton-clicked');
});