can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r11371: LJSUP-10748: Free2pay

Committer: dpetrov
LJSUP-10748: Free2pay
U   trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js
===================================================================
--- trunk/htdocs/js/pay.js	2012-01-31 07:12:42 UTC (rev 11370)
+++ trunk/htdocs/js/pay.js	2012-01-31 08:07:20 UTC (rev 11371)
@@ -219,9 +219,9 @@
 					jsonp: 'jsonp',
 					url: url,
 					dataType: 'jsonp',
-					complete: function(ans) {
-						if (ans.responseText && ans.responseText.Offers) {
-							jQuery.tmpl(template, ans.responseText.Offers).appendTo(freeToPay);
+					success: function(ans) {
+						if (ans && ans.Offers) {
+							jQuery.tmpl(template, ans.Offers).appendTo(freeToPay);
 						}
 					}
 				});

Tags: can3p, dpetrov, js, ljcom
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