Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[ljcom] r9489: LJSUP-6582: Custom Userheads: SMS paymen...

Committer: pkornilov
LJSUP-6582: Custom Userheads: SMS payments.
U   trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js
===================================================================
--- trunk/htdocs/js/pay.js	2010-09-10 10:12:13 UTC (rev 9488)
+++ trunk/htdocs/js/pay.js	2010-09-10 10:14:41 UTC (rev 9489)
@@ -292,11 +292,13 @@
 		}
 	},
 	
-	userheadsPaySms_click: function(e, userhead_id)
+	userheadsPaySms_click: function(node)
 	{
-		e = jQuery.event.fix(e);
-		e.preventDefault();
-		var form_ary = jQuery(e.target).parents('form').serializeArray(),
+		var node = jQuery(node);
+		
+		node.parent().find('input').attr('checked', 'checked').change();
+		
+		var form_ary = jQuery(node).parents('form').serializeArray(),
 			obj = {
 				'Widget[IPPU_UserHeadSmsPay]_to': LiveJournal.parseGetArgs(location.search).giftto || '',
 				_widget_post: 1

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