-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
73bf648
commit f67e598
Showing
18 changed files
with
72 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ define([ | |
|
||
if (msg) { | ||
alert({ | ||
content: $.mage.__(msg) | ||
content: msg | ||
}); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ define([ | |
} | ||
} | ||
alert({ | ||
content: $.mage.__(msg) | ||
content: msg | ||
}); | ||
return false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -430,10 +430,10 @@ define([ | |
var pass = $.trim(v); | ||
var result = pass.length >= passwordMinLength; | ||
if (result == false) { | ||
validator.passwordErrorMessage = $.mage.__( | ||
"Minimum length of this field must be equal or greater than %1 symbols." + | ||
" Leading and trailing spaces will be ignored." | ||
).replace('%1', passwordMinLength); | ||
/*eslint-disable max-len*/ | ||
validator.passwordErrorMessage = $.mage.__('Minimum length of this field must be equal or greater than %1 symbols. Leading and trailing spaces will be ignored.').replace('%1', passwordMinLength); | ||
|
||
/*eslint-enable max-len*/ | ||
return result; | ||
} | ||
if (pass.match(/\d+/)) { | ||
|
@@ -450,10 +450,11 @@ define([ | |
} | ||
if (counter < passwordMinCharacterSets) { | ||
result = false; | ||
validator.passwordErrorMessage = $.mage.__( | ||
"Minimum of different classes of characters in password is %1." + | ||
" Classes of characters: Lower Case, Upper Case, Digits, Special Characters." | ||
).replace('%1', passwordMinCharacterSets); | ||
|
||
/*eslint-disable max-len*/ | ||
validator.passwordErrorMessage = $.mage.__('Minimum of different classes of characters in password is %1. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.').replace('%1', passwordMinCharacterSets); | ||
|
||
/*eslint-enable max-len*/ | ||
} | ||
return result; | ||
}, function () { | ||
|
@@ -741,7 +742,8 @@ define([ | |
} | ||
} | ||
return true; | ||
}, "Please enter valid email addresses, separated by commas. For example, [email protected], [email protected]." | ||
}, | ||
$.mage.__('Please enter valid email addresses, separated by commas. For example, [email protected], [email protected].') | ||
], | ||
"validate-cc-number": [ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f67e598
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any other way to achieve all this changes by not modifying Magento folders? I mainly need the changes from:
app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js
lib/web/mage/validation.js
I can apply the change modifying the lib folder but, as I asked, I can't modify the Magento folder as itself. We use extensions as submodules on git to override Magento Folders.