[Vtigercrm-commits] [vtiger-commits] r9204 - /vtigercrm/trunk/include/js/general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Aug 30 11:28:15 EDT 2006
Author: richie
Date: Wed Aug 30 09:27:55 2006
New Revision: 9204
Log:
line breaks checked in trim function --Jeri
Modified:
vtigercrm/trunk/include/js/general.js
Modified: vtigercrm/trunk/include/js/general.js
==============================================================================
--- vtigercrm/trunk/include/js/general.js (original)
+++ vtigercrm/trunk/include/js/general.js Wed Aug 30 09:27:55 2006
@@ -1421,11 +1421,11 @@
function trim(s)
{
- while (s.substring(0,1) == " ")
+ while (s.substring(0,1) == " " || s.substring(0,1) == "\n")
{
s = s.substring(1, s.length);
}
- while (s.substring(s.length-1, s.length) == ' ') {
+ while (s.substring(s.length-1, s.length) == " " || s.substring(s.length-1,s.length) == "\n") {
s = s.substring(0,s.length-1);
}
return s;
More information about the vtigercrm-commits
mailing list