summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnwesha Chatterjee <achatter@redhat.com>2017-10-10 17:14:19 +1000
committerAnwesha Chatterjee <achatter@redhat.com>2017-10-13 15:23:12 +1000
commit555d54163872b310cef830f94dc54e75f83dc10e (patch)
treeac4abbd39b34ad74b2eef2a593e4a55304b37e06
parentf162eea0e2db39a59689341e381e0fbea8e587ed (diff)
only listenTo specific attribute changes in model
To avoid unnecessary re-rendering of recipe-summary section. Bug: 1500142 Change-Id: I34e216616eee8d75887c0495812d037fc27d47fb
-rw-r--r--Server/assets/recipe-info.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/Server/assets/recipe-info.js b/Server/assets/recipe-info.js
index 3a9ba7e..c51ca78 100644
--- a/Server/assets/recipe-info.js
+++ b/Server/assets/recipe-info.js
@@ -31,7 +31,8 @@ window.RecipeSummaryView = Backbone.View.extend({
template: JST['recipe-summary'],
initialize: function () {
this.fqdn_view = new RecipeFqdnView({model: this.model});
- this.listenTo(this.model, 'change', this.render);
+ this.listenTo(this.model, 'change:start_time change:finish_time change:resource change:status ' +
+ 'change:possible_systems', this.render);
this.render();
},
render: function () {