[Vtigercrm-commits] [vtiger development] #5405: Javascript optimization for toggleSelect_ListView

vtiger development vtiger-tickets at trac.vtiger.com
Fri Dec 5 14:02:02 EST 2008


#5405: Javascript optimization for toggleSelect_ListView
----------------------------------------+-----------------------------------
 Reporter:  gregory                     |       Owner:  developer
     Type:  patch                       |      Status:  new      
 Priority:  unassigned                  |   Milestone:  5.0.4    
Component:  vtigercrm                   |     Version:  5.0.4    
 Keywords:  contacts select all toggle  |  
----------------------------------------+-----------------------------------
 When you have a lot of contacts, clicking the "select all" checkbox can
 take a lot of CPU time (for example several minutes for just checking 200
 contacts on my poor computer).

 This could be better if the function "check_object" is not called for
 every contact. In this case, I only add the contacts into an array, and I
 call only once a new function "check_objects" at the end.
 This function is similar to "check_object" but it take an array as
 parameter. So the "allselectedboxes" value is fully reconstruct in one
 final call.

 For me, the operation takes now some few seconds instead of minutes !

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5405>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list