Skip to content

Commit

Permalink
trigger ajax:success when ajax call is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
indrekj committed Oct 24, 2011
1 parent 6a0ebdb commit 0ed5d4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/javascripts/best_in_place.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ BestInPlaceEditor.prototype = {

loadSuccessCallback : function(data) {
this.element.html(data[this.objectName]);
this.element.trigger($.Event("ajax:success"), data);

// Binding back after being clicked
$(this.activator).bind('click', {editor: this}, this.clickHandler);
},
Expand Down

0 comments on commit 0ed5d4b

Please sign in to comment.