[Vtigercrm-commits] [vtiger-commits] r9216 - /vtigercrm/trunk/modules/Calendar/script.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 31 06:24:05 EDT 2006
Author: saraj
Date: Thu Aug 31 04:24:01 2006
New Revision: 9216
Log:
changes made to fix the calendar related issue --Minnie
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 Thu Aug 31 04:24:01 2006
@@ -210,7 +210,10 @@
}
else
{
- starthour = starthour;
+ if(starthour == '12')
+ starthour = 0;
+ else
+ starthour = starthour;
startmin = startmin;
}
}
@@ -226,7 +229,10 @@
}
else
{
- endhour = endhour;
+ if(endhour == '12')
+ endhour = 0;
+ else
+ endhour = endhour;
endmin = endmin;
}
}
@@ -326,7 +332,10 @@
}
else
{
- starthour = starthour;
+ if(starthour == '12')
+ starthour = 0;
+ else
+ starthour = starthour;
startmin = startmin;
}
}
@@ -342,7 +351,10 @@
}
else
{
- endhour = endhour;
+ if(endhour == '12')
+ endhour == 0;
+ else
+ endhour = endhour;
endmin = endmin;
}
}
@@ -419,12 +431,19 @@
{
if(startformat == 'pm')
{
- starthour = eval(starthour) + 12;
+ if(starthour == '12')
+ starthour = 12;
+ else
+ starthour = eval(starthour) + 12;
+
startmin = startmin;
}
else
{
- starthour = starthour;
+ if(starthour == '12')
+ starthour = 0;
+ else
+ starthour = starthour;
startmin = startmin;
}
}
@@ -450,12 +469,18 @@
{
if(startformat == 'pm')
{
- starthour = eval(starthour) + 12;
+ if(starthour == '12')
+ starthour = 12;
+ else
+ starthour = eval(starthour) + 12;
startmin = startmin;
}
else
{
- starthour = starthour;
+ if(starthour == '12')
+ starthour = 0;
+ else
+ starthour = starthour;
startmin = startmin;
}
}
More information about the vtigercrm-commits
mailing list