]> spindle.queued.net Git - midori/commitdiff
Fix dialing with keyboard after some recent changes
authorPaweł Forysiuk <tuxator@o2.pl>
Tue, 18 Oct 2011 16:59:44 +0000 (18:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 20 Oct 2011 17:14:27 +0000 (19:14 +0200)
data/speeddial-head.html

index 27303cfac01994e485f35b7e5e2f70207ae1f46a..201fc9c5a78f4e0939bc8c83ae453cbf96c638ca 100644 (file)
 
     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://");
             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';