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

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

跳转到导航 跳转到搜索
添加79字节 、​ 2020年12月24日 (四) 00:42
无编辑摘要
cssHide.disabled = true;
var dialog, actionP, actionD, text, editor, wrapper, nextid;
const $contentresize = $('#mw-content-text,.resizeLyrics #mw-imagepage-content').last|| function() {},
$content = $('#mw-content-text, #mw-imagepage-content').last(),
original = $content.children( '.mw-parser-output' ),
placeholder = $('<div>', {class: "mw-parser-output"}).css('display', 'none'),
actionP.$button.off( 'click' ).click(function() { dialog.close(); });
});
}),;
resize();
const btns = [new OO.ui.ButtonWidget({label: '提交', flags: ['primary', 'progressive']}).on('click', function() {
btns[0].setDisabled( true );
mw.safeEdit(api, mw.config.get( 'wgCurRevisionId' ), {pageid: id, text: editor.getValue(),
if ($.contains( $content[0], original[0] )) { original.after( placeholder ).detach(); }
$content.children( '.mw-parser-output' ).replaceWith( html );
resize();
mw.hook( 'wikipage.content' ).fire($content);
}, function(reason) { mw.apiFailure(reason, wgULS('预览', '預覽')); }).then(function() {
editor.setValue( text );
$content.children( '.mw-parser-output' ).replaceWith( original );
resize();
}), new OO.ui.ButtonWidget({label: wgULS('隐藏', '隱藏')}).on('click', function() {
css.disabled = !css.disabled;
wrapper.toggle();
btns[3].setLabel( css.disabled ? wgULS('显示', '顯示') : wgULS('隐藏', '隱藏'));
(mw.resizeLyrics || function() {})resize();
}), new OO.ui.ButtonWidget({flags: 'progressive', icon: 'next'})],
list = mw.storage.getObject( 'inspect-category' );
16,874

个编辑

导航菜单