diff -r f0873867143a -r 47b3125130a2 client/js/main.js --- a/client/js/main.js Thu Feb 28 19:13:08 2013 +0100 +++ b/client/js/main.js Fri Mar 01 19:14:30 2013 +0100 @@ -129,9 +129,6 @@ }); }); } - if (typeof _opts.bookmarklet_url !== "string") { - _opts.bookmarklet_url = "js/bookmarklet.js"; - } this.project = new Rkns.Models.Project(); this.language = _opts.language; this.static_url = _opts.static_url; @@ -139,16 +136,6 @@ this.read_only = _opts.read_only; this.properties = _opts.properties; - function getAbsoluteURL(url) { - var tmp = document.createElement('img'); - tmp.src = url; - var res = tmp.src; - tmp.src = null; - return res; - } - - this.bookmarklet_url = getAbsoluteURL(_opts.bookmarklet_url); - this.translate = function(_text) { return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text; } @@ -201,7 +188,7 @@ function() { _select.slideDown(); } ); this.$.find(".Rk-Search-Select").mouseleave( - function() { _select.slideUp(); } + function() { _select.hide(); } ); this.setSearchEngine(0); }