equal
deleted
inserted
replaced
93 _opts.container = "renkan"; |
93 _opts.container = "renkan"; |
94 } |
94 } |
95 if (typeof _opts.search !== "object" || !_opts.search) { |
95 if (typeof _opts.search !== "object" || !_opts.search) { |
96 _opts.search = []; |
96 _opts.search = []; |
97 } |
97 } |
|
98 if (typeof _opts.static_url !== "string") { |
|
99 _opts.static_url = ""; |
|
100 } |
98 this.project = new Rkns.Models.Project(); |
101 this.project = new Rkns.Models.Project(); |
99 this.language = _opts.language; |
102 this.language = _opts.language; |
|
103 this.static_url = _opts.static_url; |
100 this.l10n = Rkns.i18n[_opts.language]; |
104 this.l10n = Rkns.i18n[_opts.language]; |
101 if (typeof _opts.user_id !== "undefined") { |
105 if (typeof _opts.user_id !== "undefined") { |
102 this.current_user = _opts.user_id; |
106 this.current_user = _opts.user_id; |
103 } |
107 } |
104 this.$ = Rkns.$("#" + _opts.container); |
108 this.$ = Rkns.$("#" + _opts.container); |
107 .html(this.template()); |
111 .html(this.template()); |
108 this.renderer = new Rkns.Renderer.Scene(this); |
112 this.renderer = new Rkns.Renderer.Scene(this); |
109 this.tabs = []; |
113 this.tabs = []; |
110 this.search_engines = []; |
114 this.search_engines = []; |
111 this.selected_bin_item = undefined; |
115 this.selected_bin_item = undefined; |
|
116 |
|
117 this.current_user_list = new Rkns.Models.UsersList(); |
|
118 |
112 var _this = this; |
119 var _this = this; |
113 this.$.mouseup(function() { |
120 this.$.mouseup(function() { |
114 _this.selected_bin_item = undefined; |
121 _this.selected_bin_item = undefined; |
115 _this.$.find(".Rk-Bin-Item.dragging").removeClass("dragging"); |
122 _this.$.find(".Rk-Bin-Item.dragging").removeClass("dragging"); |
116 }); |
123 }); |