aboutsummaryrefslogtreecommitdiffstats
path: root/functions/event.js
diff options
context:
space:
mode:
authordavef <davefd2@users.sourceforge.net>2005-05-16 19:14:59 +0000
committerdavef <davefd2@users.sourceforge.net>2005-05-16 19:14:59 +0000
commit81b77a2e087100632ef3c1fb1f8d2f75f867a27e (patch)
treee224a6b82613a883d9211c4a304b2d34955b2386 /functions/event.js
parentc4cd9ef3029afc434d5ae41693d059ccfe459799 (diff)
downloadphpicalendar-81b77a2e087100632ef3c1fb1f8d2f75f867a27e.tar.gz
phpicalendar-81b77a2e087100632ef3c1fb1f8d2f75f867a27e.tar.bz2
phpicalendar-81b77a2e087100632ef3c1fb1f8d2f75f867a27e.zip
Big openevent cleanup - changed the openevent api, which significantly simplifies the code.
Diffstat (limited to 'functions/event.js')
-rw-r--r--functions/event.js30
1 files changed, 8 insertions, 22 deletions
diff --git a/functions/event.js b/functions/event.js
index c3d43c1..9f9f613 100644
--- a/functions/event.js
+++ b/functions/event.js
@@ -4,16 +4,9 @@ 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;
- form.elements.url.value = data.url;
+ form.elements.date.value = data.date;
+ form.elements.time.value = data.time;
+ form.elements.uid.value = data.uid;
// open a new window
var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275');
@@ -21,17 +14,10 @@ function openEventWindow(num) {
form.submit();
}
-function EventData(event, cal, start, end, description, status, location, organizer, attendee, url) {
- 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;
- this.url = url;
+function EventData(date, time, uid) {
+ this.date = date;
+ this.time = time;
+ this.uid = uid;
}
function openTodoInfo(vtodo_array) {
@@ -45,4 +31,4 @@ function openTodoInfo(vtodo_array) {
document.popup_data = new Array();
//-->
-</script> \ No newline at end of file
+</script>

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