]> spindle.queued.net Git - midori/commitdiff
Assume 'http://' if adding address without scheme to speed dial
authorChristian Dywan <christian@twotoasts.de>
Sun, 6 Jun 2010 21:29:08 +0000 (23:29 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 6 Jun 2010 21:34:21 +0000 (23:34 +0200)
data/speeddial-head.html

index 0f5b51c59063268ff625bddd17eb84449fd5ec31..edf89118f5a32c6c96aebf0d0dbde442344636a7 100644 (file)
 
         var url = prompt ("{enter_shortcut_address}", "http://");
         if (!url) return false;
+        if (url.indexOf ("://") == -1)
+            url = "http://" + url;
 
         var name = prompt ("{enter_shortcut_name}", "");
         if (!name) name = "";