Skip to content

Commit

Permalink
Merge pull request bernat#33 from indrekj/ajax-success-trigger
Browse files Browse the repository at this point in the history
trigger ajax:success when ajax call is complete
  • Loading branch information
Roger Campos committed Oct 24, 2011
2 parents 6a0ebdb + 0ed5d4b commit 9c436f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/javascripts/best_in_place.js
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 9c436f1

Please sign in to comment.