From 596fbef9156032cd04b67b4d357b48d088d26cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 16 Apr 2004 17:54:11 +0000 Subject: [PATCH] some comments --- libraries/tbl_change.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libraries/tbl_change.js b/libraries/tbl_change.js index 40f11697a..ec92a208b 100644 --- a/libraries/tbl_change.js +++ b/libraries/tbl_change.js @@ -116,12 +116,23 @@ var day; var month; var year; +/** + * Opens calendar window. + * + * @param string calendar.php parameters + * @param string form name + * @param string field name + * @param string edit type - date/timestamp + */ function openCalendar(params, form, field, type) { window.open("./calendar.php?" + params, "calendar", "width=400,height=200,status=yes"); dateField = eval("document." + form + "." + field); dateType = type; } +/** + * Initializes calendar window. + */ function initCalendar() { if (!year && !month && !day) { /* Called for first time */ @@ -206,6 +217,11 @@ function initCalendar() { cnt.innerHTML = str; } +/** + * Returns date from calendar. + * + * @param string date text + */ function returnDate(d) { window.opener.dateField.value = d; window.close();