2016-08-16 12:47:00 +02:00
|
|
|
/**
|
2017-12-19 18:48:40 +01:00
|
|
|
* EGroupware - Collabeditor - dojo configuration
|
2016-08-16 12:47:00 +02:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
2017-12-19 18:48:40 +01:00
|
|
|
* @package Collabeditor
|
|
|
|
* @author Hadi Nategh <hn-AT-egroupware.de>
|
|
|
|
* @copyright (c) 2016 by Hadi Nategh <hn-AT-egroupware.de>
|
2016-08-16 12:47:00 +02:00
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
(function(){
|
|
|
|
// Dojo configuration needed for filemanager collab editor and
|
|
|
|
// it should be load before app.js
|
2017-12-19 18:48:40 +01:00
|
|
|
var basedir = egw.webserverUrl+'/collabeditor/js/webodf/collab';
|
2016-08-16 12:47:00 +02:00
|
|
|
var usedLocale = "C";
|
|
|
|
if (navigator && navigator.language && navigator.language.match(/^(de)/)) {
|
|
|
|
usedLocale = navigator.language.substr(0,2);
|
|
|
|
}
|
|
|
|
// dojo Lib configuration needs to be set before dojo.js is loaded
|
|
|
|
window.dojoConfig = {
|
|
|
|
locale: usedLocale,
|
|
|
|
baseUrl: basedir,
|
|
|
|
paths: {
|
|
|
|
"webodf/editor": basedir,
|
|
|
|
"dijit": basedir + "/dijit",
|
|
|
|
"dojo": basedir + "/dojo",
|
|
|
|
"dojox": basedir + "/dojox",
|
|
|
|
"resources": basedir + "/resources",
|
|
|
|
"egwCollab": basedir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})();
|