spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[ljcom] r11873: 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-03 10:28:51 UTC (rev 11872)
+++ trunk/htdocs/js/pay.js	2012-05-03 11:52:53 UTC (rev 11873)
@@ -601,6 +601,8 @@
 								.addClass(freshClass)
 							);
 
+						LiveJournal.updateWalletBalance();
+
 						domainField.removeClass(errorClass.join(' '));
 
 						tabs.children().last().find('a').click();
@@ -648,8 +650,12 @@
 
 			e.preventDefault();
 			return false;
-		})
+		});
 
+		LiveJournal.register_hook('balance_updated', function(balance) {
+			jQuery('.w-wallet').find('.sum').find('span').html(balance);
+		});
+
 		tabs.tabsChanger();
 	}
 }

Tags: atyurin, js, ljcom, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments