LLWiki正在建设中,欢迎加入我们

“MediaWiki:Gadget-mainpage-edit.js”的版本间差异

跳转到导航 跳转到搜索
btns[0].setDisabled( true );
mw.safeEdit(api, null, {title: pagename, text: writeText(), summary: mw.msg('gadget-ma-summary')}).then(() => {
if (mw.config.get( 'wgRestrictionEdit' ) != 'sysop' || mw.config.get( 'wgRestrictionMove' ) != 'sysop') {
api.postWithEditToken({action: 'protect', title: pagename, protections: 'edit=sysop|move=sysop'});
}
location.reload();
}, reason => { if (reason != 'editConflict') { btns[0].setDisabled( false ); } });