Unify actions names
This commit is contained in:
parent
672f41a834
commit
10ce632d78
@ -26,7 +26,7 @@ function(models, commonViews, dialogViews, networkTabTemplate, networkTabViewMod
|
|||||||
'click .net-manager input:not([checked])': 'changeManager',
|
'click .net-manager input:not([checked])': 'changeManager',
|
||||||
'keyup .range': 'displayRange'
|
'keyup .range': 'displayRange'
|
||||||
},
|
},
|
||||||
isChanges: function() {
|
checkForChanges: function() {
|
||||||
this.setValues();
|
this.setValues();
|
||||||
if (_.isEqual(this.networks.toJSON(), this.dataDbState.settings) && this.model.get('net_manager') == this.dataDbState.manager) {
|
if (_.isEqual(this.networks.toJSON(), this.dataDbState.settings) && this.model.get('net_manager') == this.dataDbState.manager) {
|
||||||
this.$('.apply-btn').attr('disabled', true);
|
this.$('.apply-btn').attr('disabled', true);
|
||||||
@ -53,7 +53,7 @@ function(models, commonViews, dialogViews, networkTabTemplate, networkTabViewMod
|
|||||||
amount: this.$('.net-manager input[checked]').val() == 'FlatDHCPManager' ? 1 : $('.amount input', row).val(),
|
amount: this.$('.net-manager input[checked]').val() == 'FlatDHCPManager' ? 1 : $('.amount input', row).val(),
|
||||||
network_size: parseInt($('.network_size select', row).val(), 10)
|
network_size: parseInt($('.network_size select', row).val(), 10)
|
||||||
});
|
});
|
||||||
this.isChanges();
|
this.checkForChanges();
|
||||||
app.page.removeVerificationTask();
|
app.page.removeVerificationTask();
|
||||||
},
|
},
|
||||||
calculateVlanEnd: function() {
|
calculateVlanEnd: function() {
|
||||||
@ -82,7 +82,7 @@ function(models, commonViews, dialogViews, networkTabTemplate, networkTabViewMod
|
|||||||
this.$('.net-manager input').attr('checked', false);
|
this.$('.net-manager input').attr('checked', false);
|
||||||
this.$(e.target).attr('checked', true);
|
this.$(e.target).attr('checked', true);
|
||||||
this.model.set({net_manager: this.$(e.target).val()}, {silent: true});
|
this.model.set({net_manager: this.$(e.target).val()}, {silent: true});
|
||||||
this.isChanges();
|
this.checkForChanges();
|
||||||
this.$('.fixed-row .amount, .fixed-header .amount, .fixed-row .network_size, .fixed-header .size').toggle().removeClass('hide');
|
this.$('.fixed-row .amount, .fixed-header .amount, .fixed-row .network_size, .fixed-header .size').toggle().removeClass('hide');
|
||||||
this.displayRange();
|
this.displayRange();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user