Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: Improve look for forms with only basic settings
  • Loading branch information
perexg committed Sep 8, 2014
1 parent ac09d42 commit fe4dbc2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/webui/static/app/idnode.js
Expand Up @@ -603,12 +603,17 @@ tvheadend.idnode_editor_form = function(d, meta, panel, create)
panel.add(mfs[number]);
}
}
if (df.length)
panel.add(newFieldSet({ title: "Basic Settings", items: df }));
if (af.length)
panel.add(newFieldSet({ title: "Advanced Settings", items: af }));
if (rf.length)
panel.add(newFieldSet({ title: "Read-only Info", items: rf }));
if (df.length && !af.length && !rf.length) {
var f = newFieldSet({ nocollapse: true, items: df });
panel.add(f);
} else {
if (df.length)
panel.add(newFieldSet({ title: "Basic Settings", items: df }));
if (af.length)
panel.add(newFieldSet({ title: "Advanced Settings", items: af }));
if (rf.length)
panel.add(newFieldSet({ title: "Read-only Info", items: rf }));
}
panel.doLayout();
};

Expand Down

0 comments on commit fe4dbc2

Please sign in to comment.