Ignore:
Timestamp:
10/08/13 16:20:46 (11 years ago)
Author:
douglas
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final 2.5.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/expressoMail1_2/js/wfolders.js

    r7426 r8232  
    4848                                                                                        click   : function() 
    4949                                                                                        { 
    50                                                                                                 winSaveFile.dialog("close"),dialog("destroy"); 
     50                                                                                                winSaveFile.dialog("close"); 
     51                                                winSaveFile.dialog("destroy"); 
    5152                                                                                        } 
    5253                                                                                 }, 
     
    134135        cWFolders.prototype.makeWindow = function(border_id, type) 
    135136        { 
    136         if(typeof (currentTab) == "string" && currentTab.indexOf("local") != -1){   
    137             alert("Impossível manipular mensagens locais a partir de uma busca. Isso é permitido apenas para mensagens não locais."); 
    138             return true; 
     137        if(type == "move_to"){ 
     138            if( (currentTab == 0) || (currentTab.toString().indexOf("search") >= 0)){ 
     139                 
     140                //Verifica em qual aba o usuário está 
     141                var selected_msg = (currentTab == 0) ? get_selected_messages() : get_selected_messages_search(); 
     142 
     143                if ((parseInt(selected_msg) > 0 || selected_msg.length > 0)||(type != "move_to")){ 
     144                    this.load( border_id, type, false); 
     145                }else 
     146                    write_msg(get_lang('No selected message.')); 
     147            } else{ 
     148                if(typeof (currentTab) == "string" && currentTab.indexOf("local") != -1){ 
     149                    alert("Impossível manipular mensagens locais a partir de uma busca. Isso é permitido apenas para mensagens não locais."); 
     150                    return true; 
     151                } 
     152                this.load( border_id, type, false); 
     153            } 
     154        }else { 
     155            if(typeof (currentTab) == "string" && currentTab.indexOf("local") != -1){ 
     156                alert("Impossível manipular mensagens locais a partir de uma busca. Isso é permitido apenas para mensagens não locais."); 
     157                return true; 
     158            } 
     159            this.load( border_id, type, false); 
    139160        } 
    140                 this.load( border_id, type, false); 
    141         } 
     161    } 
    142162         
    143163/* Build the Object */ 
Note: See TracChangeset for help on using the changeset viewer.