fix cucumber failures

This commit is contained in:
Dan Hansen 2011-08-26 15:32:13 -05:00
parent 27d4fd8176
commit 20b4304f23
2 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,6 @@ var ContactEdit = {
"person_id": li.parent().data("person_id"), "person_id": li.parent().data("person_id"),
"_method": (selected) ? "DELETE" : "POST" "_method": (selected) ? "DELETE" : "POST"
}, function(aspectMembership) { }, function(aspectMembership) {
console.dir(aspectMembership);
li.removeClass("loading"); li.removeClass("loading");
ContactEdit.toggleCheckbox(li); ContactEdit.toggleCheckbox(li);
ContactEdit.updateNumber(li.closest(".dropdown_list"), li.parent().data("person_id"), aspectMembership.aspect_ids.length, 'in_aspects'); ContactEdit.updateNumber(li.closest(".dropdown_list"), li.parent().data("person_id"), aspectMembership.aspect_ids.length, 'in_aspects');

View file

@ -3,7 +3,6 @@
var self = this; var self = this;
this.streamElements = {}; this.streamElements = {};
this.subscribe("widget/ready", function(evt, stream) { this.subscribe("widget/ready", function(evt, stream) {
$.extend(self, { $.extend(self, {
stream: $(stream) stream: $(stream)
@ -17,6 +16,10 @@
}); });
}); });
this.globalSubscribe("stream/reloaded", function() {
self.streamElements = {};
});
this.globalSubscribe("stream/reloaded stream/scrolled", function() { this.globalSubscribe("stream/reloaded stream/scrolled", function() {
self.publish("widget/ready", self.stream); self.publish("widget/ready", self.stream);
}); });