From cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 19 May 2007 16:18:13 +0000 Subject: fix bug 1641928 change todo popup to be like event popup --- functions/event.js | 27 ++++++++++++++++++++------- functions/template.php | 13 +++++++++++-- 2 files changed, 31 insertions(+), 9 deletions(-) (limited to 'functions') diff --git a/functions/event.js b/functions/event.js index 6895626..9020de9 100644 --- a/functions/event.js +++ b/functions/event.js @@ -23,16 +23,29 @@ function EventData(date, time, uid, cpath, event_data) { this.cpath = cpath; this.event_data = event_data; } +//--> + + diff --git a/functions/template.php b/functions/template.php index 62c9edc..1353f75 100644 --- a/functions/template.php +++ b/functions/template.php @@ -779,7 +779,7 @@ class Page { $important = trim($match2[1]); $normal = trim($match3[1]); $nugget2 = ''; - + $todo_popup_data_index = 0; if (is_array($master_array['-2'])) { foreach ($master_array['-2'] as $vtodo_times) { foreach ($vtodo_times as $val) { @@ -805,8 +805,17 @@ class Page { 'start_date' => $start_date, 'status' => $status, 'vtodo_text' => $vtodo_text); + $vtodo_array = base64_encode(urlencode(serialize($vtodo_array))); + $todo = " + "; - $vtodo_array = base64_encode(serialize($vtodo_array)); + $todo .= ''; + $todo_popup_data_index++; + $vtodo_array = $todo; + $vtodo_text = word_wrap(strip_tags(str_replace('
',' ',$vtodo_text), ''), 21, $tomorrows_events_lines); $data = array ('{VTODO_TEXT}', '{VTODO_ARRAY}'); $rep = array ($vtodo_text, $vtodo_array); -- cgit v1.2.3