summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Callaghan <dcallagh@redhat.com>2017-10-23 13:57:24 +1000
committerDan Callaghan <dcallagh@redhat.com>2017-10-23 23:44:57 +0000
commit706e3a74472261ecf6868454cc56f38e24240325 (patch)
tree891a7d3041bdb8e99794eeb07a6e6a19d996db4e
parent3ad5838688943519e011362ebf2b9d3dee159ebd (diff)
more targetted re-rendering for the recipe progress bar
-rw-r--r--Server/assets/recipe-progress.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/Server/assets/recipe-progress.js b/Server/assets/recipe-progress.js
index fa24873..a659007 100644
--- a/Server/assets/recipe-progress.js
+++ b/Server/assets/recipe-progress.js
@@ -10,7 +10,9 @@ window.RecipeProgressBar = Backbone.View.extend({
tagName: 'div',
className: 'recipe-progress',
initialize: function () {
- this.listenTo(this.model, 'change', this.render);
+ _.each(this.model.get('tasks'), function (task) {
+ this.listenTo(task, 'change', this.render);
+ }, this);
this.render();
},
render: function () {