diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-19 07:56:02 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-19 07:56:02 +0000 |
commit | 9afeb9c7602254611bbc05b40a437b819dfdb358 (patch) | |
tree | 1735c6001e906817f755b797e92be24a782b475d /functions/event.js | |
parent | 19cac1259321933ee407ed6b077ef3d2aa9e9e58 (diff) | |
download | phpicalendar-9afeb9c7602254611bbc05b40a437b819dfdb358.tar.gz phpicalendar-9afeb9c7602254611bbc05b40a437b819dfdb358.tar.bz2 phpicalendar-9afeb9c7602254611bbc05b40a437b819dfdb358.zip |
For new popup system.
Diffstat (limited to 'functions/event.js')
-rw-r--r-- | functions/event.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/functions/event.js b/functions/event.js new file mode 100644 index 0000000..d04938c --- /dev/null +++ b/functions/event.js @@ -0,0 +1,37 @@ +<script language="JavaScript" type="text/javascript"> +<!-- +function openEventWindow(num) { + // populate the hidden form + var data = document.popup_data[num]; + var form = document.forms.eventPopupForm; + form.elements.event.value = data.event; + form.elements.cal.value = data.cal; + form.elements.start.value = data.start; + form.elements.end.value = data.end; + form.elements.description.value = data.description; + form.elements.status.value = data.status; + form.elements.location.value = data.location; + form.elements.organizer.value = data.organizer; + form.elements.attendee.value = data.attendee; + + // open a new window + var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275'); + form.target = 'Popup'; + form.submit(); +} + +function EventData(event, cal, start, end, description, status, location, organizer, attendee) { + this.event = event; + this.cal = cal; + this.start = start; + this.end = end; + this.description = description; + this.status = status; + this.location = location; + this.organizer = organizer; + this.attendee = attendee; +} + +document.popup_data = new Array(); +//--> +</script>
\ No newline at end of file |