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

trying to get XEB working again
(okay, that works; it's an inelegant solution but I'll take it)
(trying to get XEB working again)
Line 16: Line 16:
  */
  */


mw.loader.load( '//wiki.oni2.net/w/index.php?title=MediaWiki:live.css&action=raw&ctype=text/css', 'text/css' );
mw.loader.load('/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();
}
//}
         } );
         } );
}
}