fix cucumber failures
This commit is contained in:
parent
27d4fd8176
commit
20b4304f23
2 changed files with 4 additions and 2 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue