diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-02-05 10:23:54 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-02-05 10:23:54 +0100 |
| commit | 9ffb9d56322949ef7db0afea44f6e4b9c856c01a (patch) | |
| tree | f489b20c7b4d3098da82d49525959cca32b41ac1 /addons/auth_signup/static/src/js | |
| parent | 6400ffb5e548d91548c828e14f980060b9fae191 (diff) | |
[REM] Removed LoginForm javascript related
bzr revid: fme@openerp.com-20140205092354-oa6qxm0fsuojhuc2
Diffstat (limited to 'addons/auth_signup/static/src/js')
| -rw-r--r-- | addons/auth_signup/static/src/js/auth_signup.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js deleted file mode 100644 index a317440fd6b..00000000000 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ /dev/null @@ -1,19 +0,0 @@ -openerp.auth_signup = function(instance) { - openerp.web.LoginForm.include({ - start: function () { - var self = this; - this.$el.on('submit', function () { - var password = self.get_password_field('password'); - var confirm_password = self.get_password_field('confirm_password'); - if (password && confirm_password && (password.value != confirm_password.value)) { - alert("Passwords do not match; please retype them."); - return false; - } - }); - }, - get_password_field: function (field) { - var selector = 'input[name="' + field + '"][type="password"]:visible'; - return this.$(selector)[0]; - }, - }); -}; |
