[Vtigercrm-commits] [vtiger-commits] r5159 - /vtigercrm/trunk/include/js/general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 17 11:32:00 EDT 2006
Author: saraj
Date: Mon Apr 17 09:31:56 2006
New Revision: 5159
Log:
js function for convert lead included
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 Mon Apr 17 09:31:56 2006
@@ -1465,3 +1465,41 @@
}
}
+//wipe for Convert Lead
+
+function fnSlide2(obj,inner)
+{
+ var buff = document.getElementById(obj).height;
+ closeLimit = buff.substring(0,buff.length);
+ menu_max = eval(closeLimit);
+ var tagName = document.getElementById(inner);
+ document.getElementById(obj).style.height=0 + "px"; menu_i=0;
+ if (tagName.style.display == 'none')
+ fnexpanLay2(obj,inner);
+ else
+ fncloseLay2(obj,inner);
+ }
+
+function fnexpanLay2(obj,inner)
+{
+ // document.getElementById(obj).style.display = 'run-in';
+ var setText = eval(closeLimit) - 1;
+ if (menu_i<=eval(closeLimit))
+ {
+ if (menu_i>setText){document.getElementById(inner).style.display='block';}
+ document.getElementById(obj).style.height=menu_i + "px";
+ setTimeout(function() { fnexpanLay2(obj,inner); },5);
+ menu_i=menu_i+5;
+ }
+}
+
+ function fncloseLay2(obj,inner)
+{
+ if (menu_max >= eval(openLimit))
+ {
+ if (menu_max<eval(closeLimit)){document.getElementById(inner).style.display='none';}
+ document.getElementById(obj).style.height=menu_max +"px";
+ setTimeout(function() { fncloseLay2(obj,inner); }, 5);
+ menu_max = menu_max -5;
+ }
+}
More information about the vtigercrm-commits
mailing list