mediawiki-extensions-Visual.../modules/ve/ui/ve.ui.js
Catrope 6afed5e5cc Move ve2/ back to ve/
Change-Id: Ie51d8e48171fb1f84045d1560ee603cee62b91f6
2012-06-19 18:20:28 -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;
}
};