summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/htdocs/luci-static
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cbi/htdocs/luci-static')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js
index 24f929c9bc..2e54ff7584 100644
--- a/libs/cbi/htdocs/luci-static/resources/cbi.js
+++ b/libs/cbi/htdocs/luci-static/resources/cbi.js
@@ -235,6 +235,7 @@ function cbi_t_add(section, tab) {
function cbi_t_switch(section, tab) {
if( cbi_t[section] && cbi_t[section][tab] ) {
var o = cbi_t[section][tab];
+ var h = document.getElementById('tab.' + section);
for( var tid in cbi_t[section] ) {
var o2 = cbi_t[section][tid];
if( o.tab.id != o2.tab.id ) {
@@ -242,6 +243,7 @@ function cbi_t_switch(section, tab) {
o2.container.style.display = 'none';
}
else {
+ if(h) h.value = tab;
o2.tab.className = o2.tab.className.replace(/(^| )cbi-tab-disabled( |$)/, " cbi-tab ");
o2.container.style.display = 'block';
}