client/js/main.js
changeset 56 a9b9e6c7be63
parent 53 bb63da144239
child 62 f9019462465a
--- a/client/js/main.js	Mon Feb 11 12:39:35 2013 +0100
+++ b/client/js/main.js	Mon Feb 11 18:08:19 2013 +0100
@@ -95,8 +95,12 @@
     if (typeof _opts.search !== "object" || !_opts.search) {
         _opts.search = [];
     }
+    if (typeof _opts.static_url !== "string") {
+        _opts.static_url = "";
+    }
     this.project = new Rkns.Models.Project();
     this.language = _opts.language;
+    this.static_url = _opts.static_url;
     this.l10n = Rkns.i18n[_opts.language];
     if (typeof _opts.user_id !== "undefined") {
         this.current_user = _opts.user_id;
@@ -109,6 +113,9 @@
     this.tabs = [];
     this.search_engines = [];
     this.selected_bin_item = undefined;
+
+    this.current_user_list = new Rkns.Models.UsersList();
+    
     var _this = this;
     this.$.mouseup(function() {
         _this.selected_bin_item = undefined;