});
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({
width: 550,
noautoWidth: true,
fixedHeight: true,
+ noApply: true,
help: conf.help || null
});
mpanel.add(current);