From: Paweł Forysiuk Date: Fri, 25 Mar 2011 19:42:15 +0000 (+0100) Subject: Remove unneeded javascript for add/ remove dial actions X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6de1aa71409773b229c2a669df870011e050cc7;p=midori Remove unneeded javascript for add/ remove dial actions There is no need to replace HTML markup since Dial is refreshed on change. --- diff --git a/data/speeddial-head.html b/data/speeddial-head.html index b68d1099..39508ea3 100644 --- a/data/speeddial-head.html +++ b/data/speeddial-head.html @@ -95,10 +95,6 @@ height: 100%; } - .waiter img { - margin-top: 38px; - } - div.shortcut a:hover { border: 1px solid #999; } @@ -211,24 +207,12 @@ var name = prompt ("{enter_shortcut_name}", ""); if (!name) name = ""; - a.setProperty('href', url); - a.getNext().set('text', name); - - var num = id.substr (1) - 1; - - a.empty(); - var im = new Element('img', { src: '{stock}/image-loading' }); - - a.addClass ('waiter'); - a.grab (im); - console.log ("speed_dial-save-add " + id + " " + url + " " + name); return false; } var renameShortcut = function (id) { - var num = id.substr (1) - 1; var name = prompt ("{enter_shortcut_name}", $(id).getLast ().get ('html', name)); if (!name) return; @@ -242,18 +226,6 @@ if(!confirm("{are_you_sure}")) return; - var num = id.substr (1); - var div = $(id); - var cross = div.getFirst (); - var a = cross.getNext (); - var p = a.getNext (); - - cross.dispose (); - div.removeClass ('activated'); - a.empty ().set ('html', '

' + num + '

'); - a.setProperty ('href', '#'); - p.empty ().removeProperty ('onclick'); - console.log ("speed_dial-save-delete " + id); }