Skip to content

Commit

Permalink
Update jquery.krobar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
roberjo committed Apr 9, 2013
1 parent 8152958 commit c4561dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jquery.krobar.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@
// call them like so: this.yourOtherFunction(this.element, this.options).

// TODO: Get all elements, add .on() change function to fire ajax post using options passed in
$(this.element).find('input').change(function () {
this.saveData(this.element, this.options);
});
$(this).find('input').change(
$.proxy(function () {
//use original 'this'
this.saveData(this.element, this.options);
},this));

},

Expand Down

0 comments on commit c4561dd

Please sign in to comment.