proxmox-widget-toolkit/node/TimeEdit.js
Thomas Lamprecht bf49d2da0f TimeEdit: use schematic declaration
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-17 12:21:04 +01:00

38 lines
678 B
JavaScript

Ext.define('Proxmox.node.TimeEdit', {
extend: 'Proxmox.window.Edit',
alias: ['widget.proxmoxNodeTimeEdit'],
subject: gettext('Time zone'),
width: 400,
autoLoad: true,
fieldDefaults: {
labelWidth: 70
},
items: {
xtype: 'combo',
fieldLabel: gettext('Time zone'),
name: 'timezone',
queryMode: 'local',
store: Ext.create('Proxmox.data.TimezoneStore'),
displayField: 'zone',
forceSelection: true,
editable: false,
allowBlank: false
},
initComponent : function() {
var me = this;
if (!me.nodename) {
throw "no node name specified";
}
me.url = "/api2/extjs/nodes/" + me.nodename + "/time";
me.callParent();
}
});