libs/web: fix wrong default focus in dynlist widgets (#388)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 4 Mar 2012 14:15:09 +0000 (14:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 4 Mar 2012 14:15:09 +0000 (14:15 +0000)
libs/web/htdocs/luci-static/resources/cbi.js

index 8ced441..0a49a69 100644 (file)
@@ -748,7 +748,7 @@ function cbi_dynlist_init(name, respath, datatype, optional, choices)
                return false;
        }
 
                return false;
        }
 
-       cbi_dynlist_redraw(-1, -1, -1);
+       cbi_dynlist_redraw(NaN, -1, -1);
 }
 
 //Hijacks the CBI form to send via XHR (requires Prototype)
 }
 
 //Hijacks the CBI form to send via XHR (requires Prototype)