r97114 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97113‎ | r97114 | r97115 >
Date:23:31, 14 September 2011
Author:pgehres
Status:ok
Tags:
Comment:
Adding error msg styling and a ;
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html
@@ -4,6 +4,7 @@
55 <!-- start Webitects styles -->
66 <link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" />
77 <style type="text/css">
 8+ #errorMessages { font-size: 0.75em; color: #FF0000; }
89 /* Force vertical scrollbar
910 html { overflow-y: scroll; }
1011 */
@@ -206,17 +207,17 @@
207208 $.getScript('@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.min.js', function() {
208209 $.getScript('@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.min.js', function() {
209210 // 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'];
212213
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++ ){
215216 if ( errors[i].length > 0 ){
216217 console.log(errors[i]);
217218 count++;
218219 if ( count > 1 )
219220 $('#errorMessages').append('<br />');
220 - $('#errorMessages').append(error[i]);
 221+ $('#errorMessages').append(errors[i]);
221222 }
222223 }
223224 // Inline labels

Status & tagging log