luci2: always load 'none' protocol explicitely since it serves as fallback for unknow...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:14:27 +0000 (22:14 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:14:27 +0000 (22:14 +0200)
luci2/htdocs/luci2/luci2.js

index 2d1c8bcf9d23a4241cf2ea7b065e247e0623377a..7c099018aef80c076254df3025344a79a28d7cf4 100644 (file)
@@ -1483,7 +1483,9 @@ function LuCI2()
                _fetch_protocols: function()
                {
                        var self = L.NetworkModel;
-                       var deferreds = [ ];
+                       var deferreds = [
+                               self._fetch_protocol('none')
+                       ];
 
                        for (var proto in self._cache.protolist)
                                deferreds.push(self._fetch_protocol(proto));