aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-04-08 21:33:14 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-04-08 21:33:14 +0000
commit873688e87be6762e794cfc6e11c2c9d407d8929a (patch)
treef9adc87272a3da52ffabcbfee123a486489d4995 /functions
parentd58c8698aa924355ee9d59407ba064b0ed5ff308 (diff)
downloadphpicalendar-873688e87be6762e794cfc6e11c2c9d407d8929a.tar.gz
phpicalendar-873688e87be6762e794cfc6e11c2c9d407d8929a.tar.bz2
phpicalendar-873688e87be6762e794cfc6e11c2c9d407d8929a.zip
Really fix jump-box
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-2022 Faster IT GmbH | imprint | privacy policy