Skip to content

Commit

Permalink
Added the current form to the context of the remote ajax request
Browse files Browse the repository at this point in the history
  • Loading branch information
florisrobbemont authored and jzaefferer committed Jan 14, 2014
1 parent aa0d624 commit 0a18ae6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ $.extend($.validator, {
port: "validate" + element.name,
dataType: "json",
data: data,
context: validator.currentForm,
success: function( response ) {
validator.settings.messages[element.name].remote = previous.originalMessage;
var valid = response === true || response === "true";
Expand Down

0 comments on commit 0a18ae6

Please sign in to comment.