diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-20 05:18:38 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-20 05:18:38 +0000 |
commit | b941c90ce2d8f9a1248425087063257aacd615bc (patch) | |
tree | eb7512b970951143c189b7753d4154c52ead5f46 /functions/event.js | |
parent | 4fb8c0746e8ab44a536be48107d7f56b00fa69a6 (diff) | |
download | phpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.tar.gz phpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.tar.bz2 phpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.zip |
Added URL support to popup, re-wrote event.php for less code.
Diffstat (limited to 'functions/event.js')
-rw-r--r-- | functions/event.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/event.js b/functions/event.js index d04938c..adee336 100644 --- a/functions/event.js +++ b/functions/event.js @@ -13,6 +13,7 @@ function openEventWindow(num) { form.elements.location.value = data.location; form.elements.organizer.value = data.organizer; form.elements.attendee.value = data.attendee; + form.elements.url.value = data.url; // open a new window var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275'); @@ -20,7 +21,7 @@ function openEventWindow(num) { form.submit(); } -function EventData(event, cal, start, end, description, status, location, organizer, attendee) { +function EventData(event, cal, start, end, description, status, location, organizer, attendee, url) { this.event = event; this.cal = cal; this.start = start; @@ -30,6 +31,7 @@ function EventData(event, cal, start, end, description, status, location, organi this.location = location; this.organizer = organizer; this.attendee = attendee; + this.url = url; } document.popup_data = new Array(); |