mediawiki-extensions-Visual.../modules/ve2/ui/ve.ui.js
Trevor Parscal 17fff0d163 Fixed dependency on mw, now demo works again
Change-Id: I26599e065a521cf08a16f5a65e36960a692421e9
2012-06-11 12:11:07 -07:00

22 lines
531 B
JavaScript

/**
* VisualEditor User Interface namespace.
*
* All classes and functions will be attached to this object to keep the global namespace clean.
*/
ve.ui = {
// Path to UI assets for direct loading
'stylesheetPath': 'extensions/VisualEditor/modules/ve2/ui/styles/'
};
/*
* @method static
* Returns UI stylesheet path
*/
ve.ui.getStylesheetPath = function() {
if ( 'mw' in window ) {
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve2/ui/styles/';
} else {
return ve.ui.stylesheetPath;
}
};