aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/event.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions/event.js b/functions/event.js
index 012a32c..c6eb29e 100644
--- a/functions/event.js
+++ b/functions/event.js
@@ -59,7 +59,12 @@ function submitform(form, value) {
var action = temp[0];
values[0] = temp[1];
- form.setAttribute("action", action);
+ try {
+ form.setAttribute("action", action);
+ }
+ catch(e) {
+ form.action = action;
+ }
// Stuff the hidden form fields.
for (var i = 0; i < values.length; i++) {
@@ -68,7 +73,7 @@ function submitform(form, value) {
}
// Clear the select+option value.
- var select = form.elements.namedItem("action")
+ var select = form.elements.namedItem("form_action")
select.options[select.selectedIndex].value = "";
form.submit();

© 2014-2024 Faster IT GmbH | imprint | privacy policy