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

添加64字节 、​ 2021年1月8日 (五) 09:28
无编辑摘要
}
const btnGo = new OO.ui.ButtonWidget({flags: 'progressive', icon: 'next', href: '/?redirect=no&curid=' + nextid,
disabled: !nextid}).on('click', function() {;
// 这个click事件不能绑到btnGo上,否则会禁用href跳转
btnGo.$element.click(function() { if (list && flag) { mw.storage.setObject( 'inspect-category', list ); } })
});
btnGo.$element .contextmenu(function(e) {
e.preventDefault();
OO.ui.prompt( wgULS('请输入分类名或名字空间编号:', '請輸入分類名或名字空間編號:') ).then(function(cat) {
16,874

个编辑