Author: hhubner Date: 2006-11-17 06:42:09 -0500 (Fri, 17 Nov 2006) New Revision: 2074
Modified: trunk/projects/bos/payment-website/static/bos.js trunk/projects/bos/payment-website/static/bos_en.js Log: Fix form check for number of sqm to buy.
Modified: trunk/projects/bos/payment-website/static/bos.js =================================================================== --- trunk/projects/bos/payment-website/static/bos.js 2006-11-17 11:31:08 UTC (rev 2073) +++ trunk/projects/bos/payment-website/static/bos.js 2006-11-17 11:42:09 UTC (rev 2074) @@ -106,7 +106,7 @@ return false; }
- if (!document.bestellformular.numsqm1.value.match(/^\d+/)) { + if (document.bestellformular.numsqm[4].checked && !document.bestellformular.numsqm1.value.match(/^\d+/)) { alert('Bitte geben Sie die Anzahl der Quadratmeter ein, die Sie "kaufen" möchten!'); document.bestellformular.numsqm1.focus(); return false;
Modified: trunk/projects/bos/payment-website/static/bos_en.js =================================================================== --- trunk/projects/bos/payment-website/static/bos_en.js 2006-11-17 11:31:08 UTC (rev 2073) +++ trunk/projects/bos/payment-website/static/bos_en.js 2006-11-17 11:42:09 UTC (rev 2074) @@ -51,7 +51,7 @@ return false; }
- if (!document.bestellformular.numsqm1.value.match(/^\d+/)) { + if (document.bestellformular.numsqm[4].checked && !document.bestellformular.numsqm1.value.match(/^\d+/)) { alert('Please enter the number of square meters that you want to "buy"!'); document.bestellformular.numsqm1.focus(); return false;