diff -r ba5022639c76 -r 50b3287d06dd client/js/main.js --- a/client/js/main.js Wed May 15 18:17:18 2013 +0200 +++ b/client/js/main.js Tue May 28 16:45:12 2013 +0200 @@ -134,7 +134,11 @@ this.$ .addClass("Rk-Main") .html(this.template(this)); - this.renderer = new Rkns.Renderer.Scene(this); + + if (this.options.show_editor) { + this.renderer = new Rkns.Renderer.Scene(this); + } + this.tabs = []; this.search_engines = []; @@ -196,7 +200,11 @@ _this.$.find(".Rk-Bin-Main").slideUp(); _mainDiv.slideDown(); } - }).on("mouseover", ".Rk-Bin-Item", function(_e) { + }); + + if (this.options.show_editor) { + + this.$.find(".Rk-Bins").on("mouseover", ".Rk-Bin-Item", function(_e) { var _t = Rkns.$(this); if (_t && $(_t).attr("data-uri")) { var _models = _this.project.get("nodes").where({ @@ -247,6 +255,9 @@ e.originalEvent.dataTransfer.setData("text",div.innerHTML); } }); + + } + Rkns.$(window).resize(function() { _this.resizeBins(); }); @@ -269,7 +280,8 @@ + '" />' + '
" />' + '" />
' - + '<% } %>
' + + '<% } %>' + + '<% if (options.show_editor) { %>
<% } %>' ); Rkns.Renkan.prototype.translate = function(_text) { @@ -363,3 +375,5 @@ } }; + +/* END main.js */