Ignore:
Timestamp:
07/19/11 14:05:49 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #2059 - Menu de contexto não é exibido em todos resultados de pesquisa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/abas.js

    r4802 r4807  
    108108        } 
    109109 
    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); 
    120111        currentTab=ID; 
    121112         
     
    392383} 
    393384 
    394 function getTabPrefix() { 
     385function getTabPrefix() { // define o prefixo para os checkboxes das mensagens 
    395386        if (typeof(currentTab)!='number') 
    396387                return currentTab+"_"; 
     
    399390} 
    400391 
    401 function getMessageIdFromRowId(row_id) { 
    402         if (row_id.match("_s")) 
    403                 return row_id.substr(0,3); 
     392function 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); 
    404396        else 
    405397                return row_id; 
    406398} 
     399 
     400function 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.