Difference between revisions of "MediaWiki:Edittools.js"

From Learning Languages Through Video Games
Jump to navigationJump to search
Line 1: Line 1:
function runJpFixer() {
+
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='runJpFixer(); return false' value='Tempt Fate' />");
+
     $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' />");
});