equal
deleted
inserted
replaced
65 .addClass("Rk-Bin-Title") |
65 .addClass("Rk-Bin-Title") |
66 .appendTo(this.$); |
66 .appendTo(this.$); |
67 this.main_$ = Rkns.$('<div>') |
67 this.main_$ = Rkns.$('<div>') |
68 .addClass("Rk-Bin-Main") |
68 .addClass("Rk-Bin-Main") |
69 .appendTo(this.$) |
69 .appendTo(this.$) |
70 .html('<h4 class="Rk-Bin-Loading">' + _renkan.l10n.loading_bin + '</h4>'); |
70 .html('<h4 class="Rk-Bin-Loading">' + _renkan.translate("Loading, please wait") + '</h4>'); |
71 this.title_$.html(_opts.title || '(new bin)'); |
71 this.title_$.html(_opts.title || '(new bin)'); |
72 this.renkan.resizeBins(); |
72 this.renkan.resizeBins(); |
73 |
73 |
74 if (_opts.auto_refresh) { |
74 if (_opts.auto_refresh) { |
75 window.setInterval(function() { |
75 window.setInterval(function() { |
110 } |
110 } |
111 this.project = new Rkns.Models.Project(); |
111 this.project = new Rkns.Models.Project(); |
112 this.language = _opts.language; |
112 this.language = _opts.language; |
113 this.static_url = _opts.static_url; |
113 this.static_url = _opts.static_url; |
114 this.read_only = _opts.read_only; |
114 this.read_only = _opts.read_only; |
115 this.l10n = Rkns.i18n[_opts.language]; |
115 this.translate = function(_text) { |
|
116 return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text; |
|
117 } |
116 if (typeof _opts.user_id !== "undefined") { |
118 if (typeof _opts.user_id !== "undefined") { |
117 this.current_user = _opts.user_id; |
119 this.current_user = _opts.user_id; |
118 } |
120 } |
119 this.$ = Rkns.$("#" + _opts.container); |
121 this.$ = Rkns.$("#" + _opts.container); |
120 this.$ |
122 this.$ |