[Xfce4-commits] <midori:master> Remove unneeded javascript for add/ remove dial actions

Christian Dywan noreply at xfce.org
Sun Apr 3 22:36:04 CEST 2011


Updating branch refs/heads/master
         to c6de1aa71409773b229c2a669df870011e050cc7 (commit)
       from 7cafd62552a8ef00ec81ea67af90802d61535b6c (commit)

commit c6de1aa71409773b229c2a669df870011e050cc7
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Fri Mar 25 20:42:15 2011 +0100

    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 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index b68d109..39508ea 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', '<h1>' + num + '</h1><h4><span/></h4>');
-        a.setProperty ('href', '#');
-        p.empty ().removeProperty ('onclick');
-
         console.log ("speed_dial-save-delete " + id);
     }
 



More information about the Xfce4-commits mailing list