return values;
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
var MIN_QUORUM_VOTES = 3;
'change': function(field, newValue) {
if (newValue === 'disabled') {
disabledHint.setVisible(true);
- }
- else {
+ } else {
if (disabledHint.isVisible()) {
disabledHint.setVisible(false);
}
guestType: undefined,
isCreate: undefined,
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (me.isCreate === undefined) {
subject: gettext('Resource') + ': ' + gettext('Container') +
'/' + gettext('Virtual Machine'),
isAdd: true,
- items: [ ipanel ],
+ items: [ipanel],
});
me.callParent();
if (!me.isCreate) {
me.load({
- success: function(response, options) {
+ success: function(response, options) {
var values = response.result.data;
- var regex = /^(\S+):(\S+)$/;
+ var regex = /^(\S+):(\S+)$/;
var res = regex.exec(values.sid);
if (res[1] !== 'vm' && res[1] !== 'ct') {