Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js |
— | — | @@ -15,6 +15,18 @@ |
16 | 16 | var fname = document.getElementById('fname'); |
17 | 17 | var lname = document.getElementById('lname'); |
18 | 18 | var amountOther = document.getElementById('amountOther'); |
| 19 | + if (fname.value == '') { |
| 20 | + fname.style.color = '#999999'; |
| 21 | + fname.value = 'First'; |
| 22 | + } |
| 23 | + if (lname.value == '') { |
| 24 | + lname.style.color = '#999999'; |
| 25 | + lname.value = 'Last'; |
| 26 | + } |
| 27 | + if (amountOther.value == '') { |
| 28 | + amountOther.style.color = '#999999'; |
| 29 | + amountOther.value = 'Other'; |
| 30 | + } |
19 | 31 | } |
20 | 32 | |
21 | 33 | //addEvent( window, 'load', loadPlaceholders ); |