User:Lost Labyrinth/general/quicklicense.js: Difference between revisions

And it's doing what I /don't/ want it to do
imported>Lost Labyrinth
(I've either fixed it completely or I'm doing too much)
imported>Lost Labyrinth
(And it's doing what I /don't/ want it to do)
Line 56:
$('#aSubmit').click( function(event) {
this.innerHTML = '<img src="http://images2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif" style="vertical-align: baseline;" border="0" />';
$.post("/api.php", {action: "edit", title: wgPageName, token: mw.user.tokens.values.editToken, appendtext: $("== License =="), $("#QLicenseSelect").val(), summary: "Licensing image."}, function (result) {
window.location = wgServer + '/index.php?title=' + wgPageName + '&action=purge';
});