Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI: Don't show apply button in the hardware input tree forms
  • Loading branch information
perexg committed Dec 1, 2015
1 parent 4878e78 commit 2c47ef2
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/webui/static/app/idnode.js
Expand Up @@ -950,23 +950,25 @@ tvheadend.idnode_editor = function(item, conf)
});
buttons.push(saveBtn);

var applyBtn = new Ext.Button({
text: _('Apply'),
iconCls: 'apply',
handler: function() {
var node = panel.getForm().getFieldValues();
node.uuid = conf.uuids ? conf.uuids : item.uuid;
tvheadend.Ajax({
url: 'api/idnode/save',
params: {
node: Ext.encode(node)
},
success: function(d) {
}
});
}
});
buttons.push(applyBtn);
if (!conf.noApply) {
var applyBtn = new Ext.Button({
text: _('Apply'),
iconCls: 'apply',
handler: function() {
var node = panel.getForm().getFieldValues();
node.uuid = conf.uuids ? conf.uuids : item.uuid;
tvheadend.Ajax({
url: 'api/idnode/save',
params: {
node: Ext.encode(node)
},
success: function(d) {
}
});
}
});
buttons.push(applyBtn);
}

if (conf.help) {
var helpBtn = new Ext.Button({
Expand Down Expand Up @@ -2227,6 +2229,7 @@ tvheadend.idnode_tree = function(panel, conf)
width: 550,
noautoWidth: true,
fixedHeight: true,
noApply: true,
help: conf.help || null
});
mpanel.add(current);
Expand Down

0 comments on commit 2c47ef2

Please sign in to comment.