Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Merge branch 'pickemail_newemail_whitespace' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Tomlinson committed Nov 16, 2011
2 parents 46e4664 + 333adbf commit 8bb9eac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Expand Up @@ -65,7 +65,9 @@
me.close("auth", { email: me.email });
}
}, me.getErrorDialog(BrowserID.Errors.registration));
}
},

"
});


Expand Down
5 changes: 3 additions & 2 deletions resources/static/dialog/controllers/pickemail_controller.js
Expand Up @@ -42,6 +42,7 @@
user = bid.User,
errors = bid.Errors,
storage = bid.Storage,
helpers = bid.Helpers,
dom = bid.DOM,
body = $("body"),
animationComplete = body.innerWidth() < 640,
Expand Down Expand Up @@ -150,12 +151,12 @@
}

function addEmail(element, event) {
var email = dom.getInner("#newEmail"),
var email = helpers.getAndValidateEmail("#newEmail"),
self=this;

cancelEvent(event);

if (!bid.Validation.email(email)) {
if (!email) {
return;
}

Expand Down
1 change: 1 addition & 0 deletions resources/static/dialog/dialog.js
Expand Up @@ -61,6 +61,7 @@ steal
'../shared/screens',
'../shared/tooltip',
'../shared/validation',
'../shared/helpers',
'../shared/browser-support',
'../shared/browserid-extensions',
'../shared/network',
Expand Down

0 comments on commit 8bb9eac

Please sign in to comment.