Renamed fooVar to fooParam for various classes.

This commit is contained in:
Qiang Xue
2014-02-15 18:18:27 -05:00
parent c0bac44f10
commit 26cb7b2a3c
15 changed files with 95 additions and 83 deletions

View File

@ -45,7 +45,7 @@
// function ($form, attribute, messages)
afterValidate: undefined,
// the GET parameter name indicating an AJAX-based validation
ajaxVar: 'ajax',
ajaxParam: 'ajax',
// the type of data that you're expecting back from the server
ajaxDataType: 'json'
};
@ -295,7 +295,7 @@
// If the validation is triggered by form submission, ajax validation
// should be done only when all inputs pass client validation
var $button = data.submitObject,
extData = '&' + data.settings.ajaxVar + '=' + $form.prop('id');
extData = '&' + data.settings.ajaxParam + '=' + $form.prop('id');
if ($button && $button.length && $button.prop('name')) {
extData += '&' + $button.prop('name') + '=' + $button.prop('value');
}