Purchases

"); $('#loginform-submit').html(llbl).removeAttr('disabled'); if(message.indexOf('"success":true,') > 0) { location.href = "/purchases/"; } }, 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(wpdm_asset.spinner+" "+res.message); location.href = "/purchases/"; } } }); return false; }); $('body').on('click', 'form .alert-danger', function(){ $(this).slideUp(); }); });