ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r10201: LJSUP-8014: Credit card payment process ...

Committer: ssafronova
LJSUP-8014: Credit card payment process refactoring
[tags: pkornilov]
U   trunk/ssldocs/manage/account/cc.bml
Modified: trunk/ssldocs/manage/account/cc.bml
===================================================================
--- trunk/ssldocs/manage/account/cc.bml	2011-03-09 08:30:42 UTC (rev 10200)
+++ trunk/ssldocs/manage/account/cc.bml	2011-03-09 09:05:15 UTC (rev 10201)
@@ -530,9 +530,14 @@
         $ret .= " p?>";
     }
 
-    $ret .= "<?errorbar $err (field: $err_field) errorbar?>" if $print_cc_form;
+    if ($print_cc_form) {
+        $ret .= "<span class='b-bubble b-bubble-warning' id='move_to_$err_field'><i class='i-bubble-arrow-border'></i><i class='i-bubble-arrow'></i>$err</span>";
+        $ret .= "<script type=\"text/javascript\">jQuery(function(){";
+        $ret .= "jQuery(\"#move_to_$err_field\").appendTo(jQuery(\"#ccform [name=$err_field]\").closest(\"li\")).show();";
+        $ret .= "});</script>";
+    }
 
-    $ret .= '<form method="POST" id="ccform" onsubmit="return validate_cc_input()">';
+    $ret .= '<form method="post" id="ccform" name="ccform">';
     $ret .= LJ::html_hidden('pmtid', $pmtid) if $pmtid;
     $ret .= LJ::Widget::CreditCard::render( $rec->valid_countries(), $err, \%POST, $card, { cvv2 => 1 } );
     $ret .= '</form>';

Tags: bml, ljcom, pkornilov, ssafronova
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