aboutsummaryrefslogtreecommitdiffstats
path: root/functions/event.js
blob: 0072bd37015cc69422d0ca3224cb88661b86a454 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<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.date.value = data.date;
	form.elements.time.value = data.time;
	form.elements.uid.value = data.uid;
	form.elements.cpath.value = data.cpath;
	
	// open a new window
	var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275');
	form.target = 'Popup';
	form.submit();
}

function EventData(date, time, uid, cpath) {
	this.date = date;
	this.time = time;
	this.uid = uid;
	this.cpath = cpath;
}

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();
}

document.popup_data = new Array();
//-->
</script>

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