our spec would complain about the data of the ajax request not being there, move it into the callback instead
This commit is contained in:
parent
8619a2035c
commit
b209fd0c2c
1 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,8 @@ var AspectEdit = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
AspectEdit.onMovePersonSuccess(person, dropzone, data);
|
AspectEdit.onMovePersonSuccess(person, dropzone);
|
||||||
|
View.flashes.render($.parseJSON(data));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -85,8 +86,7 @@ var AspectEdit = {
|
||||||
person.removeAttr('data-person_id');
|
person.removeAttr('data-person_id');
|
||||||
},
|
},
|
||||||
|
|
||||||
onMovePersonSuccess: function(person, dropzone, data) {
|
onMovePersonSuccess: function(person, dropzone) {
|
||||||
View.flashes.render(data);
|
|
||||||
person.attr('data-aspect_id', dropzone.attr('data-aspect_id'));
|
person.attr('data-aspect_id', dropzone.attr('data-aspect_id'));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue