All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.uncompressed-js-resources.oam.custom.schedule.javascript.schedule.js Maven / Gradle / Ivy

Go to download

JSF components and utilities that can be used with any JSF implementation. This library is based on the JSF1.1 version of Tomahawk, but with minor source code and build changes to take advantage of JSF2.1 features. A JSF2.1 implementation is required to use this version of the Tomahawk library.

The newest version!
function fireScheduleTimeClicked(obj, e, formId, scheduleId) {
	//make sure it works on IE too
	if (!e) var e = window.event;
	//capture the mouse coordinates relative to the foreground layer
	var y = e.layerY;
	var el = e.target;
	//make sure it works in IE too
	if (!y) y = e.offsetY;
	if (!el) el = e.srcElement;
	if (el != obj) return false;
	var dateInputId = scheduleId + "_last_clicked_date";
	var yInputId = scheduleId + "_last_clicked_y";
	document.forms[formId][dateInputId].value = el.id;
	document.forms[formId][yInputId].value = y;
	document.forms[formId].submit();
	return true;
}

function fireScheduleDateClicked(obj, e, formId, scheduleId) {
	//make sure it works on IE too
	if (!e) var e = window.event;
	var el = e.target;
	//make sure it works in IE too
	if (!el) el = e.srcElement;
	if (el != obj) return false;
	var dateInputId = scheduleId + "_last_clicked_date";
	document.forms[formId][dateInputId].value = el.id;
	document.forms[formId].submit();
	return true;
}

function fireEntrySelected(formId, scheduleId, entryId) {
	document.forms[formId][scheduleId].value = entryId;
	document.forms[formId].submit();
	return true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy