Permalink
Browse files

Bring back real-time updates for master backlog

  • Loading branch information...
1 parent a7c3561 commit 785b0c50b3842707fb6a4907c758955aef794203 @relaxdiego relaxdiego committed Aug 18, 2010
Showing with 10 additions and 1 deletion.
  1. +9 −0 assets/javascripts/backlogs_updater.js
  2. +1 −1 assets/javascripts/board_updater.js
View
9 assets/javascripts/backlogs_updater.js
@@ -1,4 +1,13 @@
RB.BacklogsUpdater = RB.Object.create(RB.BoardUpdater, {
+ processAllItems: function(data){
+ var self = this;
+
+ // Process all stories
+ var items = $(data).children('.story');
+ items.each(function(i, v){
+ self.processItem(v, false);
+ });
+ },
processItem: function(html){
var update = RB.Factory.initialize(RB.Story, html);
View
2 assets/javascripts/board_updater.js
@@ -77,7 +77,7 @@ RB.BoardUpdater = RB.Object.create({
},
processAllItems: function(){
- throw "RB.BoardUpdater.processItems() was not overriden by child object";
+ throw "RB.BoardUpdater.processAllItems() was not overriden by child object";
},
processData: function(data, textStatus, xhr){

0 comments on commit 785b0c5

Please sign in to comment.