equal
deleted
inserted
replaced
49 .appendTo(this.$); |
49 .appendTo(this.$); |
50 |
50 |
51 var _this = this; |
51 var _this = this; |
52 |
52 |
53 Rkns.$('<a>') |
53 Rkns.$('<a>') |
54 .attr("href","#") |
54 .attr({ |
|
55 href: "#", |
|
56 title: _renkan.translate("Close bin") |
|
57 }) |
55 .addClass("Rk-Bin-Close") |
58 .addClass("Rk-Bin-Close") |
56 .html('×') |
59 .html('×') |
57 .appendTo(this.$) |
60 .appendTo(this.$) |
58 .click(function() { |
61 .click(function() { |
59 _this.destroy(); |
62 _this.destroy(); |
|
63 if (!_renkan.$.find(".Rk-Bin-Main:visible").length) { |
|
64 _renkan.$.find(".Rk-Bin-Main:last").slideDown(); |
|
65 } |
|
66 _renkan.resizeBins(); |
60 return false; |
67 return false; |
61 }); |
68 }); |
62 Rkns.$('<a>') |
69 Rkns.$('<a>') |
63 .attr("href","#") |
70 .attr({ |
|
71 href: "#", |
|
72 title: _renkan.translate("Refresh bin") |
|
73 }) |
64 .addClass("Rk-Bin-Refresh") |
74 .addClass("Rk-Bin-Refresh") |
65 .appendTo(this.$) |
75 .appendTo(this.$) |
66 .click(function() { |
76 .click(function() { |
67 _this.refresh(); |
77 _this.refresh(); |
68 return false; |
78 return false; |
224 |
234 |
225 Rkns.Renkan.prototype.template = Rkns._.template( |
235 Rkns.Renkan.prototype.template = Rkns._.template( |
226 '<% if (options.show_bins) { %><div class="Rk-Bins"><div class="Rk-Bins-Head"><h2 class="Rk-Bins-Title"><%- translate("Select contents:")%></h2>' |
236 '<% if (options.show_bins) { %><div class="Rk-Bins"><div class="Rk-Bins-Head"><h2 class="Rk-Bins-Title"><%- translate("Select contents:")%></h2>' |
227 + '<form class="Rk-Web-Search-Form Rk-Search-Form"><input class="Rk-Web-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search the Web") %>" />' |
237 + '<form class="Rk-Web-Search-Form Rk-Search-Form"><input class="Rk-Web-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search the Web") %>" />' |
228 + '<div class="Rk-Search-Select"><div class="Rk-Search-Current"></div><ul class="Rk-Search-List"></ul></div>' |
238 + '<div class="Rk-Search-Select"><div class="Rk-Search-Current"></div><ul class="Rk-Search-List"></ul></div>' |
229 + '<input type="submit" value="" class="Rk-Web-Search-Submit Rk-Search-Submit" /></form>' |
239 + '<input type="submit" value="" class="Rk-Web-Search-Submit Rk-Search-Submit" title="<%- translate("Search the Web") %>" /></form>' |
230 + '<form class="Rk-Bins-Search-Form Rk-Search-Form"><input class="Rk-Bins-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search in Bins") %>" />' |
240 + '<form class="Rk-Bins-Search-Form Rk-Search-Form"><input class="Rk-Bins-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search in Bins") %>" />' |
231 + '<input type="submit" value="" class="Rk-Bins-Search-Submit Rk-Search-Submit" /></form></div>' |
241 + '<input type="submit" value="" class="Rk-Bins-Search-Submit Rk-Search-Submit" title="<%- translate("Search in Bins") %>" /></form></div>' |
232 + '<ul class="Rk-Bin-List"></ul></div><% } %><div class="Rk-Render Rk-Render-<% if (options.show_bins) { %>Panel<% } else { %>Full<% } %>"></div>' |
242 + '<ul class="Rk-Bin-List"></ul></div><% } %><div class="Rk-Render Rk-Render-<% if (options.show_bins) { %>Panel<% } else { %>Full<% } %>"></div>' |
233 ); |
243 ); |
234 |
244 |
235 Rkns.Renkan.prototype.onStatusChange = function() { |
245 Rkns.Renkan.prototype.onStatusChange = function() { |
236 this.renderer.onStatusChange(); |
246 this.renderer.onStatusChange(); |