Changed asp and dotnet examples to use css sprites instead of images. Changed dotnet...
[infodrom/rico3] / ricoClient / js / rico.js
index 8d7378b..38d9e78 100644 (file)
@@ -25,7 +25,7 @@ var Rico = {
       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();
     }
@@ -40,9 +40,8 @@ var Rico = {
     Rico.eventBind(window,"load", Rico.eventHandle(Rico,'windowLoaded'));
   },
 
-  setPaths : function(jsDir,htmDir) {
+  setPaths : function(jsDir) {
     this.jsDir = jsDir;
-    this.htmDir = htmDir || jsDir;
   },
 
   setBackgroundStyles: function() {
@@ -74,7 +73,7 @@ var Rico = {
   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);
   },