Skip to content

Commit

Permalink
fix the verify return shopper view (probably always broken?)
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed May 19, 2017
1 parent cd72c8f commit 336b011
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -49,25 +49,26 @@
{literal}
YUI(EXPONENT.YUI3_CONFIG).use('*', function(Y) {
//alert("HERE");
Y.one('#submit-verify').on('click',function(e){
// Y.one('#submit-verify').on('click',function(e){
Y.one('#Submit').on('click',function(e){
//alert("Here");
e.halt();
var frm = Y.one('#verifyAndRestoreCartForm');
var ln = Y.one('#lastname');
var em = Y.one('#email');
var zc = Y.one('#zip_code');
if(ln.get('value) == '')
if(ln.get('value') == '')
{
alert("{/literal}{"Please verify your Last Name to continue."|gettext}{literal}");
return false;
}
if(em.get('value) == '')
if(em.get('value') == '')
{
alert("{/literal}{"Please verify your Email to continue."|gettext}{literal}");
return false;
}
if(zc.get('value) == '')
if(zc.get('value') == '')
{
alert("{/literal}{"Please verify your Zip Code to continue."|gettext}{literal}");
return false;
Expand Down

0 comments on commit 336b011

Please sign in to comment.