2012-02-06 23:50:56 +00:00
|
|
|
/**
|
|
|
|
* VisualEditor User Interface namespace.
|
2012-06-20 01:20:28 +00:00
|
|
|
*
|
2012-02-06 23:50:56 +00:00
|
|
|
* All classes and functions will be attached to this object to keep the global namespace clean.
|
|
|
|
*/
|
|
|
|
ve.ui = {
|
2012-06-20 01:20:28 +00:00
|
|
|
// Path to UI assets for direct loading
|
2012-06-20 17:48:18 +00:00
|
|
|
'stylesheetPath': 'extensions/VisualEditor/modules/ve/ui/styles/'
|
2012-06-20 01:20:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @method static
|
|
|
|
* Returns UI stylesheet path
|
|
|
|
*/
|
|
|
|
ve.ui.getStylesheetPath = function() {
|
|
|
|
if ( 'mw' in window ) {
|
2012-06-20 17:48:18 +00:00
|
|
|
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve/ui/styles/';
|
2012-06-20 01:20:28 +00:00
|
|
|
} else {
|
|
|
|
return ve.ui.stylesheetPath;
|
|
|
|
}
|
2012-02-06 23:50:56 +00:00
|
|
|
};
|