[Vtigercrm-commits] [vtiger-commits] r3961 - /vtigercrm/trunk/modules/Calendar/script.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 27 09:54:16 EST 2006
Author: saraj
Date: Mon Feb 27 07:54:12 2006
New Revision: 3961
Log:
js function check_form has been included
Modified:
vtigercrm/trunk/modules/Calendar/script.js
Modified: vtigercrm/trunk/modules/Calendar/script.js
==============================================================================
--- vtigercrm/trunk/modules/Calendar/script.js (original)
+++ vtigercrm/trunk/modules/Calendar/script.js Mon Feb 27 07:54:12 2006
@@ -80,3 +80,25 @@
}
}
+
+function check_form()
+{
+ if(trim(document.appSave.subject.value) == "")
+ {
+ alert("Missing Event Name");
+ document.appSave.subject.focus()
+ return false;
+ }
+ else
+ {
+ if (document.appSave.activitytype[0].checked==true)
+ {
+ document.appSave.duration_minutes.value = "15";
+ }
+ else if (document.appSave.activitytype[1].checked == true)
+ {
+ document.appSave.duration_minutes.value = "45";
+ }
+ return true;
+ }
+}
More information about the vtigercrm-commits
mailing list