mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
6b34f09df2
And added a license to some files that didn't have it yet Change-Id: I3a7e60374d1198d369a0475b8f65f7415012a337
29 lines
674 B
JavaScript
29 lines
674 B
JavaScript
/*global mw */
|
|
|
|
/**
|
|
* VisualEditor user interface namespace.
|
|
*
|
|
* @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.
|
|
*/
|
|
ve.ui = {
|
|
// Path to UI assets for direct loading
|
|
'stylesheetPath': 'extensions/VisualEditor/modules/ve/ui/styles/'
|
|
};
|
|
|
|
/*
|
|
* @method static
|
|
* Returns UI stylesheet path
|
|
*/
|
|
ve.ui.getStylesheetPath = function() {
|
|
if ( 'mw' in window ) {
|
|
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve/ui/styles/';
|
|
} else {
|
|
return ve.ui.stylesheetPath;
|
|
}
|
|
};
|