2012-05-21 19:37:30 +00:00
|
|
|
/**
|
|
|
|
* VisualEditor User Interface namespace.
|
2012-06-11 06:54:41 +00:00
|
|
|
*
|
2012-05-21 19:37:30 +00:00
|
|
|
* All classes and functions will be attached to this object to keep the global namespace clean.
|
|
|
|
*/
|
|
|
|
ve.ui = {
|
2012-06-11 19:11:07 +00:00
|
|
|
// Path to UI assets for direct loading
|
|
|
|
'stylesheetPath': 'extensions/VisualEditor/modules/ve2/ui/styles/'
|
2012-05-21 19:37:30 +00:00
|
|
|
};
|
2012-06-09 00:16:15 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* @method static
|
|
|
|
* Returns UI stylesheet path
|
|
|
|
*/
|
|
|
|
ve.ui.getStylesheetPath = function() {
|
2012-06-11 19:11:07 +00:00
|
|
|
if ( 'mw' in window ) {
|
|
|
|
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve2/ui/styles/';
|
|
|
|
} else {
|
|
|
|
return ve.ui.stylesheetPath;
|
|
|
|
}
|
2012-06-11 06:54:41 +00:00
|
|
|
};
|