diff --git a/nailgun/static/js/views/cluster_page_tabs/network_tab.js b/nailgun/static/js/views/cluster_page_tabs/network_tab.js index e616cfbbd4..9861409070 100644 --- a/nailgun/static/js/views/cluster_page_tabs/network_tab.js +++ b/nailgun/static/js/views/cluster_page_tabs/network_tab.js @@ -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(); },