Resolve dependencies when a combobox is updated.
authorSteven Barth <steven@midlink.org>
Fri, 9 Jan 2009 10:57:28 +0000 (10:57 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 9 Jan 2009 10:57:28 +0000 (10:57 +0000)
libs/cbi/htdocs/luci-static/resources/cbi.js

index abeba345bdee8379ca857943ae0136e28f77b2c2..77c59e511ee7d26f99474cddcf07f2913ce9b19c 100644 (file)
@@ -172,6 +172,12 @@ function cbi_combobox(id, values, def, man) {
                } else {
                        obj.value = sel.options[sel.selectedIndex].value;
                }
+
+               try {
+                       cbi_d_update();
+               } catch (e) {
+                       //Do nothing
+               }
        })
 }