Unify actions names

This commit is contained in:
Julia Kirnosova 2013-02-08 17:04:00 +04:00 committed by default
parent 672f41a834
commit 10ce632d78
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ function(models, commonViews, dialogViews, networkTabTemplate, networkTabViewMod
'click .net-manager input:not([checked])': 'changeManager',
'keyup .range': 'displayRange'
},
isChanges: function() {
checkForChanges: function() {
this.setValues();
if (_.isEqual(this.networks.toJSON(), this.dataDbState.settings) && this.model.get('net_manager') == this.dataDbState.manager) {
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(),
network_size: parseInt($('.network_size select', row).val(), 10)
});
this.isChanges();
this.checkForChanges();
app.page.removeVerificationTask();
},
calculateVlanEnd: function() {
@ -82,7 +82,7 @@ function(models, commonViews, dialogViews, networkTabTemplate, networkTabViewMod
this.$('.net-manager input').attr('checked', false);
this.$(e.target).attr('checked', 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.displayRange();
},