Changeset 5285


Ignore:
Timestamp:
12/23/11 14:21:33 (12 years ago)
Author:
douglasz
Message:

Ticket #2403 - Realcar pagina selecionada na navegacao de pastas Imap do usuario

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r5283 r5285  
    556556 
    557557                if(current_page == i || (i == total_pages && !hasMarked)) { 
    558                         lnk_page = document.createElement("SPAN"); 
     558                        lnk_page = document.createElement("SPAN");                       
    559559                        span_paging.appendChild(lnk_page); 
     560                        lnk_page.style.color = "red";                    
    560561                        lnk_page.innerHTML = "&nbsp;<b>"+i+"</b>&nbsp;"; 
    561562                        hasMarked = true; 
  • trunk/expressoMail1_2/js/search.js

    r5267 r5285  
    265265                }  
    266266  
    267                 if(this.page != 0) {  
     267                if(this.page != 0 && this.page != null) {  
    268268                        _link = document.createElement("A");  
    269269                if( this.value ) 
     
    302302  
    303303                var hasMarked = false;  
     304                if(this.page == null){ 
     305                        this.page = 0; 
     306                } 
    304307                for(i = this.lastPage; i <= this.totalPages; i++)  
    305308                {  
     
    325328                                _link.href  = 'javascript:EsearchE.page='+i+';';  
    326329                                _link.href += 'cExecute("$this.imap_functions.search_msg",openpage,"condition='+this.condition+'&sort_type='+this.sort_type+'&page='+_page+'&current_tab='+currentTab+'");';  
    327                         }  
     330                                }  
    328331                        }  
    329332                        _link.innerHTML = "&nbsp;...&nbsp;";  
     
    340343  
    341344                                span_pg.appendChild( _link );  
    342                         }  
     345                }  
    343346  
    344347                        if(this.page != (this.totalPages - 1)) {  
     
    349352                                _link.href  = 'javascript:EsearchE.page='+(this.totalPages-1)+';';  
    350353                                _link.href += 'cExecute("$this.imap_functions.search_msg",openpage,"condition='+this.condition+'&sort_type='+this.sort_type+'&page='+(this.totalPages-1)+'&current_tab='+currentTab+'");';  
    351                         }  
     354                                }  
    352355                        }  
    353356                else {  
     
    362365  
    363366                        Element("div_menu_c3").appendChild(span_pg);  
    364                 } 
     367        } 
    365368 
    366369        searchE.prototype.searchFor = function( borderID, sortType ) 
Note: See TracChangeset for help on using the changeset viewer.