From 85a464cbc166c732f1e24deb7cc96f5680f943ab Mon Sep 17 00:00:00 2001 From: Oleksandr Dubovyk Date: Tue, 13 Sep 2016 16:14:31 +0300 Subject: [PATCH 1/5] MAGETWO-55838: [Add address] Same address can be added several times at once --- .../view/frontend/requirejs-config.js | 3 +- .../frontend/templates/address/edit.phtml | 2 +- .../view/frontend/web/js/addressValidation.js | 36 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 app/code/Magento/Customer/view/frontend/web/js/addressValidation.js diff --git a/app/code/Magento/Customer/view/frontend/requirejs-config.js b/app/code/Magento/Customer/view/frontend/requirejs-config.js index 53f12373bfd92..508737742cafe 100644 --- a/app/code/Magento/Customer/view/frontend/requirejs-config.js +++ b/app/code/Magento/Customer/view/frontend/requirejs-config.js @@ -10,7 +10,8 @@ var config = { address: 'Magento_Customer/address', changeEmailPassword: 'Magento_Customer/change-email-password', passwordStrengthIndicator: 'Magento_Customer/js/password-strength-indicator', - zxcvbn: 'Magento_Customer/js/zxcvbn' + zxcvbn: 'Magento_Customer/js/zxcvbn', + addressValidation: 'Magento_Customer/js/addressValidation' } } }; diff --git a/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml b/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml index 2de971bf6a9c0..17d7c9852fc4b 100644 --- a/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml +++ b/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml @@ -203,7 +203,7 @@