diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-05-19 16:18:13 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-05-19 16:18:13 +0000 |
commit | cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44 (patch) | |
tree | b58eecf29add350a9be0399f874c640c9a3acc04 /functions/event.js | |
parent | d2594889e58f17893f8a7dc4477b1723a6faf391 (diff) | |
download | phpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.tar.gz phpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.tar.bz2 phpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.zip |
fix bug 1641928 change todo popup to be like event popup
Diffstat (limited to 'functions/event.js')
-rw-r--r-- | functions/event.js | 27 |
1 files changed, 20 insertions, 7 deletions
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; } +//--> +</script> +<script language="JavaScript" type="text/javascript"> +<!-- + +function openTodoInfo(num) { + // populate the hidden form + var data = document.todo_popup_data[num]; + var form = document.forms.todoPopupForm; -function openTodoInfo(vtodo_array) { - var windowW = 460; - var windowH = 275; - var url = "includes/todo.php?vtodo_array="+vtodo_array; - options = "scrollbars=yes,width="+windowW+",height="+windowH; - info = window.open(url, "Popup", options); - info.focus(); + form.elements.todo_data.value = data.todo_data; + + // open a new window + var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275'); + form.target = 'Popup'; + form.submit(); +} +function TodoData(todo_data,todo_text) { + this.todo_data = todo_data; + this.todo_text = todo_text; } document.popup_data = new Array(); +document.todo_popup_data = new Array(); //--> </script> |