vendor/assets/javascripts/webshims/shims/form-validators.js in webshims-rails-1.11.1 vs vendor/assets/javascripts/webshims/shims/form-validators.js in webshims-rails-1.11.2
- old
+ new
@@ -117,11 +117,11 @@
* - <input type="email" id="mail" /> <input data-dependent-validation='mail' />
* - <input type="date" id="start" data-dependent-validation='{"from": "end", "prop": "max"}' /> <input type="date" id="end" data-dependent-validation='{"from": "start", "prop": "min"}' />
* - <input type="checkbox" id="check" /> <input data-dependent-validation='checkbox' />
*/
(function(){
-
+ var formCFG = webshims.cfg.forms;
var addCustomValidityRule = webshims.addCustomValidityRule;
var getId = function(name){
return document.getElementById(name);
};
addCustomValidityRule('partialPattern', function(elem, val, pattern){
@@ -295,10 +295,10 @@
$.ajax(
$.extend({}, opts, {
url: opts.url,
dataType: 'json',
depData: remoteData,
- data: opts.fullForm ?
+ data: formCFG.fullRemoteForm || opts.fullForm ?
$(elem).jProp('form').serializeArray() :
remoteData,
success: this.getResponse,
complete: this._complete
})