[bknr-cvs] hans changed trunk/projects/bos/payment-website/

BKNR Commits bknr at bknr.net
Tue Jul 22 17:03:24 UTC 2008


Revision: 3563
Author: hans
URL: http://bknr.net/trac/changeset/3563

Formulardaten nur ein mal abschicken.

U   trunk/projects/bos/payment-website/static/bos.js
U   trunk/projects/bos/payment-website/templates/da/ueberweisung.xml
U   trunk/projects/bos/payment-website/templates/de/ueberweisung.xml

Modified: trunk/projects/bos/payment-website/static/bos.js
===================================================================
--- trunk/projects/bos/payment-website/static/bos.js	2008-07-22 16:37:55 UTC (rev 3562)
+++ trunk/projects/bos/payment-website/static/bos.js	2008-07-22 17:03:24 UTC (rev 3563)
@@ -96,6 +96,8 @@
 	alert("Den Geschenkservice können wir nur bei Online-Überweisungen anbieten");
 	return false;
     }
+
+    return true;
 }
 
 function check_online() {
@@ -224,3 +226,38 @@
     if (s!=''){alert('Die benötigten Informationen sind unvollständig oder fehlerhaft:\t\t\t\t\t\n\n'+s)}
     document.MM_returnValue = (s=='');
 }
+
+function check_ueberweisung_da()
+{
+    YY_checkform('mailtransfer',
+                 'vorname','#q','0','Anuller venligst dette felt \'Fornavn\'.',
+                 'name','#q','0','Anuller venligst dette felt \'Efternavn\'.',
+                 'strasse','#q','0','Anuller venligst dette felt \'Gade/Nr.\'.',
+                 'plz','#q','0','Anuller venligst dette felt \'Postnummer\'.',
+                 'ort','#q','0','Anuller venligst dette felt \'Kommune\'.');
+    document.getElementById('submit_button').disabled = true;
+    if (document.MM_returnValue) {
+        document.getElementById('submit_button').disabled = true;
+        document.getElementById('submit_button').value = "Data is being transmitted...";
+        return true;
+    } else {
+        return false;
+    }
+}
+
+function check_ueberweisung_de()
+{
+    YY_checkform('mailtransfer',
+                 'vorname','#q','0','Bitte das Feld \'Vorname\' ausfuellen.',
+                 'name','#q','0','Bitte das Feld \'Name\' ausfuellen.',
+                 'strasse','#q','0','Bitte das Feld \'Strasse\' ausfuellen.',
+                 'plz','#q','0','Bitte das Feld \'PLZ\' ausfuellen.',
+                 'ort','#q','0','Bitte das Feld \'Ort\' ausfuellen.');
+    if (document.MM_returnValue) {
+        document.getElementById('submit_button').disabled = true;
+        document.getElementById('submit_button').value = "Daten werden verschickt...";
+        return true;
+    } else {
+        return false;
+    }
+}
\ No newline at end of file

Modified: trunk/projects/bos/payment-website/templates/da/ueberweisung.xml
===================================================================
--- trunk/projects/bos/payment-website/templates/da/ueberweisung.xml	2008-07-22 16:37:55 UTC (rev 3562)
+++ trunk/projects/bos/payment-website/templates/da/ueberweisung.xml	2008-07-22 17:03:24 UTC (rev 3563)
@@ -40,7 +40,7 @@
 						enctype="application/x-www-form-urlencoded"
 						name="mailtransfer"
 						id="mailtransfer"
-						onsubmit="YY_checkform('mailtransfer','vorname','#q','0','Anuller venligst dette felt \'Fornavn\'.','name','#q','0','Anuller venligst dette felt \'Efternavn\'.','strasse','#q','0','Anuller venligst dette felt \'Gade/Nr.\'.','plz','#q','0','Anuller venligst dette felt \'Postnummer\'.','ort','#q','0','Anuller venligst dette felt \'Kommune\'.');return document.MM_returnValue">
+						onsubmit="check_ueberweisung_da()">
 					<input type="hidden" name="country" value="DK" />
 					<input type="hidden" name="contract-id" value="$(contract-id)" />
 					<input type="hidden" name="sponsor-id" value="$(sponsor-id)" />
@@ -112,7 +112,7 @@
 						</tr>
 						<tr>
 			                          	<td align="right" colspan="3">
-								<input type="submit" class="form_big" name="action" value="Oplysninger til BOS" />
+								<input type="submit" class="form_big" id="submit_button" name="action" value="Oplysninger til BOS" />
 							</td>
 						</tr>
 					</table>

Modified: trunk/projects/bos/payment-website/templates/de/ueberweisung.xml
===================================================================
--- trunk/projects/bos/payment-website/templates/de/ueberweisung.xml	2008-07-22 16:37:55 UTC (rev 3562)
+++ trunk/projects/bos/payment-website/templates/de/ueberweisung.xml	2008-07-22 17:03:24 UTC (rev 3563)
@@ -40,7 +40,7 @@
 						enctype="application/x-www-form-urlencoded"
 						name="mailtransfer"
 						id="mailtransfer"
-						onsubmit="YY_checkform('mailtransfer','vorname','#q','0','Bitte das Feld \'Vorname\' ausfuellen.','name','#q','0','Bitte das Feld \'Name\' ausfuellen.','strasse','#q','0','Bitte das Feld \'Strasse\' ausfuellen.','plz','#q','0','Bitte das Feld \'PLZ\' ausfuellen.','ort','#q','0','Bitte das Feld \'Ort\' ausfuellen.');return document.MM_returnValue">
+						onsubmit="return check_ueberweisung_de()">
 					<input type="hidden" name="contract-id" value="$(contract-id)" />
 					<input type="hidden" name="sponsor-id" value="$(sponsor-id)" />
 					<input type="hidden" name="amount" value="$(amount)" />
@@ -117,7 +117,7 @@
 						</tr>
 						<tr>
        <td align="right" colspan="3">
-								<input type="submit" class="form_big" name="action" value="Angaben an BOS mailen" />
+								<input type="submit" id="submit_button" class="form_big" name="action" value="Angaben an BOS mailen" />
 							</td>
 						</tr>
 					</table>




More information about the Bknr-cvs mailing list