[ljcom] r11900: LJSUP-12060: Wallet ballance should be u...
Committer: atyurin
LJSUP-12060: Wallet ballance should be update after payment is done.U trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js
===================================================================
--- trunk/htdocs/js/pay.js 2012-05-05 11:44:24 UTC (rev 11899)
+++ trunk/htdocs/js/pay.js 2012-05-05 12:03:02 UTC (rev 11900)
@@ -562,6 +562,11 @@
}
}).input();
+
+ LiveJournal.register_hook('balance_updated', function(balance) {
+ jQuery('.w-wallet').find('.sum').find('span').html(balance);
+ });
+
domainForm.submit(function(e) {
domainField.removeClass(errorClass.join(' '));
@@ -603,8 +608,10 @@
.addClass(freshClass)
);
+
LiveJournal.updateWalletBalance();
+
domainField.removeClass(errorClass.join(' '));
tabs.children().last().find('a').click();
@@ -654,9 +661,6 @@
return false;
});
- LiveJournal.register_hook('balance_updated', function(balance) {
- jQuery('.w-wallet').find('.sum').find('span').html(balance);
- });
tabs.tabsChanger();
}
