2012-07-19 03:40:49 +00:00
|
|
|
/*global mw */
|
|
|
|
|
2012-02-06 23:50:56 +00:00
|
|
|
/**
|
2012-07-19 00:11:26 +00:00
|
|
|
* VisualEditor user interface namespace.
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2012-07-19 00:11:26 +00:00
|
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Namespace for all VisualEditor user interface classes, static methods and static properties.
|
2012-02-06 23:50:56 +00:00
|
|
|
*/
|
|
|
|
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
|
|
|
};
|