Difference between revisions of "MediaWiki:Edittools.js"
From Learning Languages Through Video Games
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | function | + | function runFixer(the_func) { |
+ | the_func(); | ||
+ | } | ||
+ | |||
+ | function fixJp() { | ||
alert("Hey, what's your problem? I said this stuff isn't working yet!"); | alert("Hey, what's your problem? I said this stuff isn't working yet!"); | ||
} | } | ||
addOnloadHook(function() { | addOnloadHook(function() { | ||
− | $j('#fixer-jp').append("<input type='submit' onclick=' | + | $j('#fixer-jp').append("<input type='submit' onclick='runFixer(fixJp); return false' value='Tempt Fate' />"); |
}); | }); |
Revision as of 00:54, 20 October 2010
function runFixer(the_func) { the_func(); } function fixJp() { alert("Hey, what's your problem? I said this stuff isn't working yet!"); } addOnloadHook(function() { $j('#fixer-jp').append("<input type='submit' onclick='runFixer(fixJp); return false' value='Tempt Fate' />"); });