From 873688e87be6762e794cfc6e11c2c9d407d8929a Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Thu, 8 Apr 2010 21:33:14 +0000 Subject: Really fix jump-box --- functions/event.js | 9 +++++++-- templates/default/calendar_nav.tpl | 12 ++++++------ templates/default/sidebar.tpl | 10 +++++----- templates/default/sidebar_year.tpl | 12 ++++++------ 4 files changed, 24 insertions(+), 19 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(); diff --git a/templates/default/calendar_nav.tpl b/templates/default/calendar_nav.tpl index 2244dc5..dc3cfc8 100644 --- a/templates/default/calendar_nav.tpl +++ b/templates/default/calendar_nav.tpl @@ -3,7 +3,7 @@
- + @@ -94,31 +94,31 @@ - + - + - + - + - + {SEARCH_BOX} diff --git a/templates/default/sidebar.tpl b/templates/default/sidebar.tpl index 0a3dad4..d751f42 100644 --- a/templates/default/sidebar.tpl +++ b/templates/default/sidebar.tpl @@ -81,31 +81,31 @@ - + - + - + - + - + {SEARCH_BOX} diff --git a/templates/default/sidebar_year.tpl b/templates/default/sidebar_year.tpl index 701eacd..31ce68a 100644 --- a/templates/default/sidebar_year.tpl +++ b/templates/default/sidebar_year.tpl @@ -1,6 +1,6 @@ - +
{L_LOGIN}
@@ -81,31 +81,31 @@ - + - + - + - + - + {SEARCH_BOX} -- cgit v1.2.3
{L_LOGIN}