Changeset 4807 for trunk/expressoMail1_2/js/abas.js
- Timestamp:
- 07/19/11 14:05:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r4802 r4807 108 108 } 109 109 110 if (typeof(ID) == 'number') 111 { 112 numBox=ID; 113 } 114 else 115 { 116 if (ID.match("search_")) 117 numBox=ID.substr(7); 118 } 119 110 numBox = getNumBoxFromTabId(ID); 120 111 currentTab=ID; 121 112 … … 392 383 } 393 384 394 function getTabPrefix() { 385 function getTabPrefix() { // define o prefixo para os checkboxes das mensagens 395 386 if (typeof(currentTab)!='number') 396 387 return currentTab+"_"; … … 399 390 } 400 391 401 function getMessageIdFromRowId(row_id) { 402 if (row_id.match("_s")) 403 return row_id.substr(0,3); 392 function getMessageIdFromRowId(row_id) { // extrai o id da mensagem do id da linha 393 var p = row_id.search("_s"); 394 if (p>0) 395 return row_id.substr(0,p); 404 396 else 405 397 return row_id; 406 398 } 399 400 function getNumBoxFromTabId(tab_id) { // extrai o numBox do id da tab 401 if (typeof(tab_id)=='number') { 402 return tab_id; 403 } 404 else { 405 var p = tab_id.search(/[0-9]/); 406 return tab_id.substr(p); 407 } 408 }
Note: See TracChangeset
for help on using the changeset viewer.