r74678 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74677‎ | r74678 | r74679 >
Date:17:41, 12 October 2010
Author:kaldari
Status:deferred
Tags:
Comment:
restoring function code
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js
@@ -15,6 +15,18 @@
1616 var fname = document.getElementById('fname');
1717 var lname = document.getElementById('lname');
1818 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+ }
1931 }
2032
2133 //addEvent( window, 'load', loadPlaceholders );

Status & tagging log