[Vtigercrm-commits] [vtiger-commits] r10554 - in /vtigercrm/branches/5.0.3: include/js/general.js modules/Emails/Emails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 4 10:02:37 EDT 2007
Author: saraj
Date: Wed Apr 4 08:02:30 2007
New Revision: 10554
Log:
* Added conditions to avoid script error, Fixed #3404
Modified:
vtigercrm/branches/5.0.3/include/js/general.js
vtigercrm/branches/5.0.3/modules/Emails/Emails.js
Modified: vtigercrm/branches/5.0.3/include/js/general.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/general.js (original)
+++ vtigercrm/branches/5.0.3/include/js/general.js Wed Apr 4 08:02:30 2007
@@ -1117,13 +1117,13 @@
* @param divId :: div tag ID
*/
function show(divId)
-
-{
-
- var id = document.getElementById(divId);
-
- id.style.display = 'inline';
-
+{
+ if(getObj(divId))
+ {
+ var id = document.getElementById(divId);
+
+ id.style.display = 'inline';
+ }
}
/*
Modified: vtigercrm/branches/5.0.3/modules/Emails/Emails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Emails/Emails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Emails/Emails.js Wed Apr 4 08:02:30 2007
@@ -30,7 +30,10 @@
function setSubject(subject)
{
- document.getElementById("subjectsetter").innerHTML=subject
+ if(getObj("subjectsetter"))
+ {
+ document.getElementById("subjectsetter").innerHTML=subject;
+ }
}
function getEmailContents(id)
More information about the vtigercrm-commits
mailing list