16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
cssHide.disabled = true;
var dialog, actionP, actionD, text, editor, wrapper, nextid;
const
original = $content.children( '.mw-parser-output' ),
placeholder = $('<div>', {class: "mw-parser-output"}).css('display', 'none'),
});
});
// 先于或后于[[Widget:Lyrics]]执行都不要紧
(mw.resizeLyrics || function() {})();
const btns = [new OO.ui.ButtonWidget({label: '提交', flags: ['primary', 'progressive']}).on('click', function() {
btns[0].setDisabled( true );
if ($.contains( $content[0], original[0] )) { original.after( placeholder ).detach(); }
$content.children( '.mw-parser-output' ).replaceWith( html );
mw.hook( 'wikipage.content' ).fire($content);
}, function(reason) { mw.apiFailure(reason, wgULS('预览', '預覽')); }).then(function() {
editor.setValue( text );
$content.children( '.mw-parser-output' ).replaceWith( original );
}), new OO.ui.ButtonWidget({label: wgULS('隐藏', '隱藏')}).on('click', function() {
css.disabled = !css.disabled;
wrapper.toggle();
btns[3].setLabel( css.disabled ? wgULS('显示', '顯示') : wgULS('隐藏', '隱藏'));
}), new OO.ui.ButtonWidget({flags: 'progressive', icon: 'next'})],
list = mw.storage.getObject( 'inspect-category' );
|