]> spindle.queued.net Git - midori/commitdiff
Set proper default speed dial size if not set
authorChristian Dywan <christian@twotoasts.de>
Sun, 12 Dec 2010 00:13:59 +0000 (01:13 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 12 Dec 2010 00:13:59 +0000 (01:13 +0100)
data/speeddial-head.html

index edf89118f5a32c6c96aebf0d0dbde442344636a7..bf38d672c9a08246c73117c73345892d317328f9 100644 (file)
 
     var setSize = function ()
     {
+        if (typeof sc.width == 'undefined')
+            sc.width = 3;
         var rows = Math.ceil (sc.shortcuts.length / sc.width);
         var size = prompt ("{enter_dial_size}", sc.width + 'x' + rows);