All Red Air Max 1 Holiday

‘, ‘popup-remember-tip’ ), £(this.rememberTip.getContent()).select(‘button.btn-close’)[0].onclick = this.rememberTip.hide.bind(this.rememberTip); this.rememberTip.show(); return false; } document.observe(“dom:loaded”, function () { ££(‘#remember-me-box a’).each(function (element) { Event.observe(element, ‘click’, showTooltip); }); }); jQuery(document).ready(function () { jQuery(‘.jqLogin’).magnificPopup({ type: ‘inline’, midClick: true, callbacks: { beforeOpen: function () { jQuery(‘#login-modal’).find(‘.jqError’).html(”); jQuery(‘#login-modal’).find(‘.jqError’).hide(); jQuery(‘#register-modal’).find(‘.jqError’).html(”); jQuery(‘#register-modal’).find(‘.jqError’).hide(); jQuery(‘#forgotPassword-modal’).find(‘.jqError’).html(”); jQuery(‘#forgotPassword-modal’).find(‘.jqError’).hide(); jQuery(‘#forgotPassword-modal’).find(‘.jqsuccesmsg’).html(”); jQuery(‘#forgotPassword-modal’).find(‘.jqsuccesmsg’).hide(); }, } });//for myaccount jQuery(‘.JLogin’).magnificPopup({ type: ‘inline’, midClick: true, callbacks: { beforeOpen: function () { jQuery(‘#login-modal’).find(‘.jqError’).html(”); jQuery(‘#login-modal’).find(‘.jqError’).hide(); }, } });//for forgot password jQuery(‘.JQLogin’).magnificPopup({ type: ‘inline’, midClick: true, callbacks: { beforeOpen: function () { jQuery(‘#login-modal’).find(‘.jqError’).html(”); jQuery(‘#login-modal’).find(‘.jqError’).hide(); }, } });//for pdp wishlist jQuery(‘.jqLogin’).click(function () { jQuery(‘#advice-validate-email-login-email’).hide(); jQuery(‘#advice-required-entry-login-email’).hide(); jQuery(‘#login-email’).removeClass(‘validation-failed’).val(”); jQuery(‘#advice-required-entry-login-pass’).hide(); jQuery(‘#advice-validate-password-login-pass’).hide(); jQuery(‘#login-pass’).removeClass(‘validation-failed’).val(”); jQuery(‘#advice-required-entry-email_address’).hide(); jQuery(‘#advice-validate-email-email_address’).hide(); jQuery(‘#email_address’).removeClass(‘validation-failed’).val(”); jQuery(‘#advice-required-entry-register-password’).hide(); jQuery(‘#advice-validate-password-register-password’).hide(); jQuery(‘#register-password’).removeClass(‘validation-failed’).val(”); }); }); var loginForm = new VarienForm(‘login-form-main’, true); jQuery(“#login-form-main”).submit(function (event) { /* stop form from submitting normally */ event.preventDefault(); /* get some values from elements on the page: */ var values = jQuery(this).serialize(); var loginUrl = ‘/action/ajax_customer_login’; if (loginForm.validator && loginForm.validator.validate()) { /* Send the data using post and put the results in a div */ jQuery.ajax({ url: loginUrl, type: “post”, data: values, dataType: “json”, success: function (data) { if (data.error) { jQuery(“#login-modal”).find(“.jqError”).html(data.error); jQuery(“#login-modal”).find(“.jqError”).show(); } else if (data.success) { //window.location.href = data.success; window.location.href = window.location.href; } else if (data.redirect) { window.location.href = data.redirect; } }, error: function () { } }); } }); //]]>

You may also like...