aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-04-05 04:43:59 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-04-05 04:43:59 +0000
commite3ce63d1406a343d7295995d3f2fbfad9e12b608 (patch)
treeaaa37dd4e120e10b2efa84f5cc3e008f91eddcec /functions/date_functions.php
parent8bac82c79a8792f8b6540e55303fd566b36c0e8e (diff)
downloadphpicalendar-e3ce63d1406a343d7295995d3f2fbfad9e12b608.tar.gz
phpicalendar-e3ce63d1406a343d7295995d3f2fbfad9e12b608.tar.bz2
phpicalendar-e3ce63d1406a343d7295995d3f2fbfad9e12b608.zip
changes to event popup so that reparsing not needed
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 3e5e4b8..c6901d0 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -158,7 +158,7 @@ function chooseOffset($time) {
}
function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') {
- global $cpath;
+ global $cpath, $master_array;
$event_text = stripslashes(urldecode($arr["event_text"]));
if (empty($start)) {
$title = $event_text;
@@ -183,11 +183,12 @@ function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $lin
$escaped_date = addslashes($event_date);
$escaped_time = addslashes($time);
$escaped_uid = addslashes($uid);
+ $event_data = addslashes(serialize ($master_array[$event_date][$time][$uid]));
// fix for URL-length bug in IE: populate and submit a hidden form on click
static $popup_data_index = 0;
$return = "
<script language=\"Javascript\" type=\"text/javascript\"><!--
- var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid','$cpath');
+ var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid','$cpath','$event_data');
document.popup_data[$popup_data_index] = eventData;
// --></script>";

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