ElEditors, Interface administrators, Administrators
85,550
edits
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
/* Bind to Submit Event */ | /* Bind to Submit Event */ | ||
$('#movepage').submit(function(event){ | $('#movepage').submit(function(event){ | ||
var from, ns, to, wiki, api, new_wiki; | var from, ns, to, wiki, api, new_wiki; | ||
api = new mw.Api(); | api = new mw.Api(); | ||
Line 15: | Line 13: | ||
ns = ns[$('#wpNewTitleNs').val()]; | ns = ns[$('#wpNewTitleNs').val()]; | ||
to = $('#wpNewTitleMain').val(); | to = $('#wpNewTitleMain').val(); | ||
event.preventDefault(); | |||
/* Add Line in MoveList */ | /* Add Line in MoveList */ | ||
Line 27: | Line 27: | ||
'appendtext': from + ' -> ' + (ns == '' ? '' : ns + ':') + to | 'appendtext': from + ' -> ' + (ns == '' ? '' : ns + ':') + to | ||
}).done(function(){ | }).done(function(){ | ||
return; | |||
}); | }); | ||
}); | }); | ||
} | } | ||
} | } |