LLWiki正在建设中,欢迎加入我们!
“MediaWiki:Gadget-inspect.js”的版本间差异
跳转到导航
跳转到搜索
小 |
|||
// 改变CSS样式表示预览中
btns[1].setDisabled( true );
mw.timedParse(api, {text: editor.getValue(), uselang: lang, prop: 'text|
wgULS('预览', '預覽')).then(r => {
if ($.contains( $content[0], $original[0] )) {
if (mw.resizeLyrics) { mw.resizeLyrics(); }
mw.hook( 'wikipage.content' ).fire($content);
placeholder[1].html( r.parse.displaytitle );
placeholder[3].html( Object.entries( r.parse.indicators ).map(ele =>
$('<div>', {class: 'mw-indicator', id: `mw-indicator-${ele[0]}`, html: ele[1]})) );
▲ $('#catlinks').replaceWith( $parseCat );
}, () => {}).then(() => { btns[1].setDisabled( false ); });
}), new OO.ui.ButtonWidget({label: wgULS('还原', '復原'), flags: 'destructive', disabled: true}).on('click', () => {
|