Proxmox.Utils.API2Request({
params: {
digest: me.digest,
- data: me.down('#hostsfield').getValue()
+ data: me.down('#hostsfield').getValue(),
},
method: 'POST',
url: '/nodes/' + me.nodename + '/hosts',
},
failure: function(response, opts) {
Ext.Msg.alert('Error', response.htmlStatus);
- }
+ },
});
- }
+ },
},
{
text: gettext('Revert'),
handler: function() {
var me = this.up('panel');
me.down('#hostsfield').reset();
- }
- }
+ },
+ },
],
layout: 'fit',
itemId: 'hostsfield',
fieldStyle: {
'font-family': 'monospace',
- 'white-space': 'pre'
+ 'white-space': 'pre',
},
listeners: {
dirtychange: function(ta, dirty) {
var me = this.up('panel');
me.down('#savebtn').setDisabled(!dirty);
me.down('#resetbtn').setDisabled(!dirty);
- }
- }
- }
+ },
+ },
+ },
],
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (!me.nodename) {
proxy: {
type: 'proxmox',
url: "/api2/json/nodes/" + me.nodename + "/hosts",
- }
+ },
});
me.callParent();
});
me.reload();
- }
+ },
});