ElEditors, Interface administrators, Administrators
85,550
edits
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
$('#wpMovesubpages').attr('checked', 'checked'); | $('#wpMovesubpages').attr('checked', 'checked'); | ||
/* Bind to Submit Event */ | /* Bind to Submit Event */ | ||
$('#movepage').submit(function(){ | $('#movepage').submit(function(event){ | ||
var from, ns, to, wiki, api, new_wiki; | var from, ns, to, wiki, api, new_wiki; | ||
from = $('#mw-movepage-table strong').first().text(); | from = $('#mw-movepage-table strong').first().text(); | ||
Line 26: | Line 26: | ||
'appendtext': from + ' -> ' + (ns == '' ? '' : ns + ':') + to | 'appendtext': from + ' -> ' + (ns == '' ? '' : ns + ':') + to | ||
}).done(function(){ | }).done(function(){ | ||
$('#movepage').submit(); | // $('#movepage').submit(); | ||
}); | }); | ||
event.preventDefault(); | |||
}); | }); | ||
} | } | ||
} | } |