aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-02-09 18:07:46 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-02-09 18:07:46 +0000
commita773974c4c7660212b8aca2272a3d4aa5fb6a7ed (patch)
treea061420e8b06e876f243d2d05577a4e919831176 /functions
parent36380c2546c970bffb131644d95f376ac5688c9a (diff)
downloadphpicalendar-a773974c4c7660212b8aca2272a3d4aa5fb6a7ed.tar.gz
phpicalendar-a773974c4c7660212b8aca2272a3d4aa5fb6a7ed.tar.bz2
phpicalendar-a773974c4c7660212b8aca2272a3d4aa5fb6a7ed.zip
Fix jumpbox vs PHP transparent SID
Diffstat (limited to 'functions')
-rw-r--r--functions/event.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/functions/event.js b/functions/event.js
index 13aa609..913b608 100644
--- a/functions/event.js
+++ b/functions/event.js
@@ -49,3 +49,29 @@ document.popup_data = new Array();
document.todo_popup_data = new Array();
//-->
</script>
+<script language="JavaScript" type="text/javascript">
+<!--
+
+function submitform(form, value) {
+ // Parse value.
+ var values = decodeURI(value).split("&");
+ var temp = values[0].split("?", 2);
+ var action = temp[0];
+ values[0] = temp[1];
+
+ form.action = action;
+
+ // Stuff the hidden form fields.
+ for (var i = 0; i < values.length; i++) {
+ temp = values[i].split("=", 2);
+ form.elements.namedItem(temp[0]).value = temp[1];
+ }
+
+ // Clear the select+option value.
+ var select = form.elements.namedItem("action")
+ select.options[select.selectedIndex].value = "";
+
+ form.submit();
+}
+//-->
+</script>

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