diff --git a/public/javascripts/contact-edit.js b/public/javascripts/contact-edit.js index cc09f4d3f..54fc89a01 100644 --- a/public/javascripts/contact-edit.js +++ b/public/javascripts/contact-edit.js @@ -75,7 +75,6 @@ var ContactEdit = { "person_id": li.parent().data("person_id"), "_method": (selected) ? "DELETE" : "POST" }, function(aspectMembership) { - console.dir(aspectMembership); li.removeClass("loading"); ContactEdit.toggleCheckbox(li); ContactEdit.updateNumber(li.closest(".dropdown_list"), li.parent().data("person_id"), aspectMembership.aspect_ids.length, 'in_aspects'); diff --git a/public/javascripts/widgets/stream.js b/public/javascripts/widgets/stream.js index 8c7657d0e..037b76ed9 100644 --- a/public/javascripts/widgets/stream.js +++ b/public/javascripts/widgets/stream.js @@ -3,7 +3,6 @@ var self = this; this.streamElements = {}; - this.subscribe("widget/ready", function(evt, stream) { $.extend(self, { stream: $(stream) @@ -17,6 +16,10 @@ }); }); + this.globalSubscribe("stream/reloaded", function() { + self.streamElements = {}; + }); + this.globalSubscribe("stream/reloaded stream/scrolled", function() { self.publish("widget/ready", self.stream); });