Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter5.php |
— | — | @@ -105,14 +105,13 @@ |
106 | 106 | Xml::radio( 'payment_method', 2, $this->form_data['payment_method'] == 2 ) . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ) . |
107 | 107 | Xml::radio( 'payment_method', 3, $this->form_data['payment_method'] == 3 ) . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ) . |
108 | 108 | Xml::radio( 'payment_method', 4, $this->form_data['payment_method'] == 4 ) . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ) . |
109 | | - Xml::radio( 'payment_method', 5, $this->form_data['payment_method'] == 5 ) . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . |
| 109 | + Xml::radio( 'payment_method', 5, $this->form_data['payment_method'] == 5, 'onclick' => 'document.getElementById(\'payflow-table-cc\').style.display = \'none\';' ) . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . |
110 | 110 | '</td>'; |
111 | 111 | $form .= '</tr>'; |
112 | 112 | |
113 | 113 | $form .= '</table>'; |
114 | 114 | |
115 | | - $form .= Xml::openElement( 'div', array( 'id' => 'credit-card-stuff' ) ); |
116 | | - $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
| 115 | + $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc' ) ); |
117 | 116 | |
118 | 117 | /* |
119 | 118 | // make sure we have a paypal url set to redirect the user to before displaying the button |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.css |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | text-align: left; |
47 | 47 | } |
48 | 48 | |
49 | | -#payflow-table-donor { |
| 49 | +#payflow-table-donor, #payflow-table-cc, #payflow-table-paypal { |
50 | 50 | background-color: transparent; |
51 | 51 | } |
52 | 52 | |