From c6de1aa71409773b229c2a669df870011e050cc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Fri, 25 Mar 2011 20:42:15 +0100 Subject: [PATCH] Remove unneeded javascript for add/ remove dial actions There is no need to replace HTML markup since Dial is refreshed on change. --- data/speeddial-head.html | 28 ---------------------------- 1 file changed, 28 deletions(-) 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); } -- 2.39.5