Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | <!-- start Webitects styles --> |
6 | 6 | <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
| 8 | + #errorMessages { font-size: 0.75em; color: #FF0000; } |
8 | 9 | /* Force vertical scrollbar |
9 | 10 | html { overflow-y: scroll; } |
10 | 11 | */ |
— | — | @@ -206,17 +207,17 @@ |
207 | 208 | $.getScript('@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.min.js', function() { |
208 | 209 | $.getScript('@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.min.js', function() { |
209 | 210 | // check for RapidHtml errors and display, if any |
210 | | - var errors = ('#general','#retryMsg','#amount','#card_num','#card','#cvv','#fname', |
211 | | - '#lname','#city','#country','#street','#state','#zip','#emailAdd'); |
| 211 | + var errors = ['#general','#retryMsg','#amount','#card_num','#card','#cvv','#fname', |
| 212 | + '#lname','#city','#country','#street','#state','#zip','#emailAdd']; |
212 | 213 | |
213 | | - var count = 0 |
214 | | - for( i=0; i < errors.length; i++ ){ |
| 214 | + var count = 0; |
| 215 | + for( var i=0; i < errors.length; i++ ){ |
215 | 216 | if ( errors[i].length > 0 ){ |
216 | 217 | console.log(errors[i]); |
217 | 218 | count++; |
218 | 219 | if ( count > 1 ) |
219 | 220 | $('#errorMessages').append('<br />'); |
220 | | - $('#errorMessages').append(error[i]); |
| 221 | + $('#errorMessages').append(errors[i]); |
221 | 222 | } |
222 | 223 | } |
223 | 224 | // Inline labels |