[Xfce4-commits] <midori:master> Fix dialing with keyboard after some recent changes

Christian Dywan noreply at xfce.org
Thu Oct 20 19:18:02 CEST 2011


Updating branch refs/heads/master
         to 06620d014bc4201f2c11dfe0c1cf306f07f50ba7 (commit)
       from 2e203e746b0a77b19172dbd9e122d0fb9a05fc22 (commit)

commit 06620d014bc4201f2c11dfe0c1cf306f07f50ba7
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Tue Oct 18 18:59:44 2011 +0200

    Fix dialing with keyboard after some recent changes

 data/speeddial-head.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index 27303cf..201fc9c 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -120,8 +120,8 @@
 
     var getAction = function (id)
     {
-        var host = document.getElementById(id).childNodes[0].childNodes[0].host;
-        if (host)
+        var s = document.getElementById(id).childNodes[0];
+        if (s.className == 'preview')
             return true;
 
         var url = prompt ("{enter_shortcut_address}", "http://");
@@ -169,11 +169,11 @@
             if (key_id.substr(1) > 9)
             {
                 if (getAction (key_id))
-                    document.location = div.childNodes[0].childNodes[0].href;
+                    document.location = div.childNodes[0].childNodes[1].href;
                 key_id = 's';
             }
             else
-                key_timeout = setTimeout ('if (getAction (key_id)) document.location = document.getElementById(key_id).childNodes[0].childNodes[0].href; key_id = \'s\'', 1000);
+                key_timeout = setTimeout ('if (getAction (key_id)) document.location = document.getElementById(key_id).childNodes[0].childNodes[1].href; key_id = \'s\'', 1000);
         }
         else
             key_id = 's';


More information about the Xfce4-commits mailing list