document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
if (typeof Rico_CONFIG == 'object') {
- this.setPaths(Rico_CONFIG.jsDir);
+ if (Rico_CONFIG.jsDir) this.setPaths(Rico_CONFIG.jsDir);
this.setBackgroundStyles();
if (Rico_CONFIG.enableLogging) this.enableLogging();
}
Rico.eventBind(window,"load", Rico.eventHandle(Rico,'windowLoaded'));
},
- setPaths : function(jsDir,htmDir) {
+ setPaths : function(jsDir) {
this.jsDir = jsDir;
- this.htmDir = htmDir || jsDir;
},
setBackgroundStyles: function() {
languageInclude : function(lang2) {
var el = document.createElement('script');
el.type = 'text/javascript';
- el.src = this.jsDir+"translations/ricoLocale_"+lang2+".js";
+ el.src = this.jsDir+"ricoLocale_"+lang2+".js";
document.getElementsByTagName('head')[0].appendChild(el);
},