Changeset 8232 for branches/2.5/expressoMail1_2/js/wfolders.js
- Timestamp:
- 10/08/13 16:20:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/expressoMail1_2/js/wfolders.js
r7426 r8232 48 48 click : function() 49 49 { 50 winSaveFile.dialog("close"),dialog("destroy"); 50 winSaveFile.dialog("close"); 51 winSaveFile.dialog("destroy"); 51 52 } 52 53 }, … … 134 135 cWFolders.prototype.makeWindow = function(border_id, type) 135 136 { 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); 139 160 } 140 this.load( border_id, type, false); 141 } 161 } 142 162 143 163 /* Build the Object */
Note: See TracChangeset
for help on using the changeset viewer.