diff options
Diffstat (limited to 'js/src/validator-messages.js')
-rw-r--r-- | js/src/validator-messages.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/js/src/validator-messages.js b/js/src/validator-messages.js index 7a26a3b8eb..c231ccd195 100644 --- a/js/src/validator-messages.js +++ b/js/src/validator-messages.js @@ -1,25 +1,25 @@ // eslint-disable-next-line no-unused-vars function extendingValidatorMessages () { $.extend($.validator.messages, { - required: Messages.strValidatorRequired, - remote: Messages.strValidatorRemote, - email: Messages.strValidatorEmail, - url: Messages.strValidatorUrl, - date: Messages.strValidatorDate, - dateISO: Messages.strValidatorDateIso, - number: Messages.strValidatorNumber, - creditcard: Messages.strValidatorCreditCard, - digits: Messages.strValidatorDigits, - equalTo: Messages.strValidatorEqualTo, - maxlength: $.validator.format(Messages.strValidatorMaxLength), - minlength: $.validator.format(Messages.strValidatorMinLength), - rangelength: $.validator.format(Messages.strValidatorRangeLength), - range: $.validator.format(Messages.strValidatorRange), - max: $.validator.format(Messages.strValidatorMax), - min: $.validator.format(Messages.strValidatorMin), - validationFunctionForDateTime: $.validator.format(Messages.strValidationFunctionForDateTime), - validationFunctionForHex: $.validator.format(Messages.strValidationFunctionForHex), - validationFunctionForMd5: $.validator.format(Messages.strValidationFunctionForMd5), - validationFunctionForAesDesEncrypt: $.validator.format(Messages.strValidationFunctionForAesDesEncrypt), + required: window.Messages.strValidatorRequired, + remote: window.Messages.strValidatorRemote, + email: window.Messages.strValidatorEmail, + url: window.Messages.strValidatorUrl, + date: window.Messages.strValidatorDate, + dateISO: window.Messages.strValidatorDateIso, + number: window.Messages.strValidatorNumber, + creditcard: window.Messages.strValidatorCreditCard, + digits: window.Messages.strValidatorDigits, + equalTo: window.Messages.strValidatorEqualTo, + maxlength: $.validator.format(window.Messages.strValidatorMaxLength), + minlength: $.validator.format(window.Messages.strValidatorMinLength), + rangelength: $.validator.format(window.Messages.strValidatorRangeLength), + range: $.validator.format(window.Messages.strValidatorRange), + max: $.validator.format(window.Messages.strValidatorMax), + min: $.validator.format(window.Messages.strValidatorMin), + validationFunctionForDateTime: $.validator.format(window.Messages.strValidationFunctionForDateTime), + validationFunctionForHex: $.validator.format(window.Messages.strValidationFunctionForHex), + validationFunctionForMd5: $.validator.format(window.Messages.strValidationFunctionForMd5), + validationFunctionForAesDesEncrypt: $.validator.format(window.Messages.strValidationFunctionForAesDesEncrypt), }); } |