"); $('#loginform-submit').html(llbl).removeAttr('disabled'); }, success: function (res) { WPDM.unblockUI('#loginform'); if (!res.success) { $('form .alert-danger').hide(); $('#loginform').prepend("
"+res.message+"
"); $('#loginform-submit').html(llbl).removeAttr('disabled'); } else { $('#loginform-submit').html(" "+res.message); location.href = "/purchases/"; } } }); return false; }); $('body').on('click', 'form .alert-danger', function(){ $(this).slideUp(); }); });