Changeset 3369 for branches/2.2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 10/18/10 13:48:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/draw_api.js
r3352 r3369 569 569 lnk_page.title = get_lang("First"); 570 570 span_paging.innerHTML += " "; 571 571 572 572 if(current_page == lastPage + numPages) 573 lastPage = current_page - 1; 574 else if((lastPage != 1 && lastPage == current_page) || current_page == total_pages) 573 lastPage = current_page - 1; 574 else if((lastPage != 1 && lastPage == current_page) || current_page == total_pages) 575 575 lastPage = current_page - (numPages - 1); 576 576 else if(current_page == 1) … … 585 585 586 586 for(i = lastPage; i <= total_pages; i++) { 587 588 if(current_page == i || (i == total_pages && !hasMarked)) { 587 588 if(current_page == i || (i == total_pages && !hasMarked)) { 589 589 lnk_page = document.createElement("SPAN"); 590 590 span_paging.appendChild(lnk_page); … … 593 593 continue; 594 594 } 595 else{ 595 else{ 596 596 lnk_page = document.createElement("A"); 597 597 span_paging.appendChild(lnk_page); … … 605 605 else if(lastPage == 1 || i != lastPage) 606 606 lnk_page.innerHTML = " "+i+" "; 607 span_paging.innerHTML += " "; 607 span_paging.innerHTML += " "; 608 608 } 609 609 … … 611 611 lnk_page = document.createElement("A"); 612 612 msg_range_begin = ((total_pages*preferences.max_email_per_page)-(preferences.max_email_per_page-1)); 613 msg_range_end = (total_pages*preferences.max_email_per_page); 613 msg_range_end = (total_pages*preferences.max_email_per_page); 614 614 lnk_page.setAttribute("href", "javascript:current_page="+total_pages+";kill_current_box(); draw_paging("+num_msgs+"); proxy_mensagens.messages_list(get_current_folder(),"+msg_range_begin+","+msg_range_end+",'"+sort_box_type+"','"+search_box_type+"',"+sort_box_reverse+","+preferences.preview_msg_subject+","+preferences.preview_msg_tip+",function handler(data){draw_box(data, get_current_folder());});"); 615 615 } … … 833 833 "TreeShow"); 834 834 connector.loadAllScripts(scripts); 835 // Loading Quota View Folder Component (if exists...) 835 // Loading Quota View Folder Component (if exists...) 836 836 if(Element("table_quota")) 837 837 connector.loadScript("InfoQuota"); … … 1293 1293 td.innerHTML = _name.bold() + ', ' + info_msg.smalldate; 1294 1294 if (info_msg.attachments && info_msg.attachments.length > 0) 1295 td.innerHTML += " <img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='templates/"+template+"/images/clip.gif' title='"+info_msg.attachments .names+"'>";1295 td.innerHTML += " <img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='templates/"+template+"/images/clip.gif' title='"+info_msg.attachments[0].name+"'>"; 1296 1296 1297 1297 if (typeof(info_msg.signature) == 'string') … … 2005 2005 }catch(e){ 2006 2006 } 2007 } 2007 } 2008 2008 ////////////////////////////////////////////////////////////////////////////////////////////////////// 2009 2009 //Make the thumbs of the message.
Note: See TracChangeset
for help on using the changeset viewer.