Jump to content

MediaWiki:Common.js/edit.js: Difference between revisions

doesn't seem to help, and caused a "reference error" category to be applied...
(trying to get XEB working again)
(doesn't seem to help, and caused a "reference error" category to be applied...)
Line 16: Line 16:
  */
  */


mw.loader.load('/w/index.php?title=MediaWiki:live.css&action=raw&ctype=text/css', 'text/css');
mw.loader.load( '//wiki.oni2.net/w/index.php?title=MediaWiki:live.css&action=raw&ctype=text/css', 'text/css' );


if (typeof XEBPopups === 'undefined') {
if (typeof XEBPopups === 'undefined') {
Line 128: Line 128:


         mw.loader.using( 'user.options', function () {
         mw.loader.using( 'user.options', function () {
/*if ( mw.user.options.get('usebetatoolbar') ) {
if ( mw.user.options.get('usebetatoolbar') ) {
// Use the enhanced edit toolbar
// Use the enhanced edit toolbar
mw.loader.using( 'ext.wikiEditor.toolbar', function () {
mw.loader.using( 'ext.wikiEditor.toolbar', function () {
Line 174: Line 174:


} );
} );
} else {*/
} else {
// Use the old edit toolbar
// Use the old edit toolbar
// Add the MediaWiki standard buttons into the available buttons
// Add the MediaWiki standard buttons into the available buttons
Line 201: Line 201:
// Remove the default buttons (if requested by the user)
// Remove the default buttons (if requested by the user)
eraseButtons();
eraseButtons();
//}
}
         } );
         } );
}
}