Changeset 8112
- Timestamp:
- 04/24/13 15:58:04 (11 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r8063 r8112 333 333 //accept: ".draggin_mail", 334 334 drop : function(event, ui){ 335 $(this).css("border", " ");335 $(this).css("border", "0"); 336 336 if($(this).parent().attr('id') == undefined){ 337 337 var folder_to = 'INBOX'; -
trunk/expressoMail1_2/js/draw_api.js
r8099 r8112 1669 1669 //accept: ".draggin_mail", 1670 1670 drop : function(event, ui){ 1671 $(this).css("border", " ");1671 $(this).css("border", "0"); 1672 1672 if($(this).parent().attr('id') == undefined){ 1673 1673 var folder_to = 'INBOX'; -
trunk/expressoMail1_2/js/mail_archiver.js
r8067 r8112 427 427 428 428 var fcaption = ""; 429 430 if(destination_folder.substr(0,5) == 'local'){ 431 expresso_mail_archive.folder_destination = destination_folder.replace("local_messages_",""); 432 } 433 else{ 434 expresso_mail_archive.folder_destination = destination_folder; 435 } 429 430 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 431 var local_folder_id = destination_folder; 432 if(local_folder_id){ 433 if(local_folder_id.substr(0,5) == 'local'){ 434 local_folder_id = local_folder_id.replace("local_messages_",""); 435 } else if(local_folder_id.substr(0,8) == 'messages'){ 436 local_folder_id = local_folder_id.replace("messages_",""); 437 } 438 } 439 436 440 437 441 if(!expresso_mail_archive.archivefolder){ 438 expresso_mail_archive.getFolderInfo( expresso_mail_archive.folder_destination);442 expresso_mail_archive.getFolderInfo(local_folder_id); 439 443 if(typeof(expresso_mail_archive.folder) != "undefined"){ 440 444 //window.alert('folder.path -> ' + expresso_mail_archive.folder.path); … … 599 603 expresso_mail_archive.unarchivecounter = 0; 600 604 expresso_mail_archive.unarchive_error_counter=0; 601 expresso_mail_archive.getFolderInfo(folder.replace("local_messages_","")); 605 606 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 607 var local_folder_id = folder; 608 if(local_folder_id){ 609 if(local_folder_id.substr(0,5) == 'local'){ 610 local_folder_id = local_folder_id.replace("local_messages_",""); 611 } else if(local_folder_id.substr(0,8) == 'messages'){ 612 local_folder_id = local_folder_id.replace("messages_",""); 613 } 614 } 615 616 expresso_mail_archive.getFolderInfo(local_folder_id); 602 617 expresso_mail_archive.unarchievefolder = expresso_mail_archive.folder.name; 603 618 (new_folder != null)?expresso_mail_archive.unarchievenewfolder = new_folder:expresso_mail_archive.unarchievenewfolder='INBOX'; … … 792 807 expresso_mail_archive.unarchivecounter = 0; 793 808 expresso_mail_archive.unarchive_error_counter=0; 794 expresso_mail_archive.getFolderInfo(folder.replace("local_messages_","")); 809 810 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 811 var local_folder_id = folder; 812 if(local_folder_id){ 813 if(local_folder_id.substr(0,5) == 'local'){ 814 local_folder_id = local_folder_id.replace("local_messages_",""); 815 } else if(local_folder_id.substr(0,8) == 'messages'){ 816 local_folder_id = local_folder_id.replace("messages_",""); 817 } 818 } 819 820 expresso_mail_archive.getFolderInfo(local_folder_id); 795 821 expresso_mail_archive.unarchievefolder = expresso_mail_archive.folder.name; 796 822 (new_folder != null)?expresso_mail_archive.unarchievenewfolder = new_folder:expresso_mail_archive.unarchievenewfolder='INBOX'; … … 1047 1073 expresso_mail_archive.message_list = new Array(); 1048 1074 1049 expresso_mail_archive.currentfolder = folder.replace("local_messages_",""); 1050 1051 expresso_mail_archive.listMessages(expresso_mail_archive.currentfolder); 1075 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 1076 var local_folder_id = folder; 1077 if(local_folder_id){ 1078 if(local_folder_id.substr(0,5) == 'local'){ 1079 local_folder_id = local_folder_id.replace("local_messages_",""); 1080 } else if(local_folder_id.substr(0,8) == 'messages'){ 1081 local_folder_id = local_folder_id.replace("messages_",""); 1082 } 1083 } 1084 1085 expresso_mail_archive.listMessages(local_folder_id); 1052 1086 1053 1087 // This is necessary 'couse we can get a delete operation while an unarchive operation … … 1157 1191 expresso_mail_archive.message_list = new Array(); 1158 1192 1159 expresso_mail_archive.getFolderInfo(expresso_mail_archive.currentfolder); 1160 expresso_mail_archive.getFolderInfo(expresso_mail_archive.folder_destination); 1161 expresso_mail_archive.listMessages(expresso_mail_archive.currentfolder); 1193 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 1194 var local_folder_id = expresso_mail_archive.currentfolder; 1195 if(local_folder_id){ 1196 if(local_folder_id.substr(0,5) == 'local'){ 1197 local_folder_id = local_folder_id.replace("local_messages_",""); 1198 } else if(local_folder_id.substr(0,8) == 'messages'){ 1199 local_folder_id = local_folder_id.replace("messages_",""); 1200 } 1201 } 1202 1203 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 1204 var local_folder_id_destination = expresso_mail_archive.folder_destination; 1205 if(local_folder_id_destination){ 1206 if(local_folder_id_destination.substr(0,5) == 'local'){ 1207 local_folder_id_destination = local_folder_id_destination.replace("local_messages_",""); 1208 } else if(local_folder_id_destination.substr(0,8) == 'messages'){ 1209 local_folder_id_destination = local_folder_id_destination.replace("messages_",""); 1210 } 1211 } 1212 1213 expresso_mail_archive.getFolderInfo(local_folder_id); 1214 expresso_mail_archive.getFolderInfo(local_folder_id_destination); 1215 expresso_mail_archive.listMessages(local_folder_id); 1162 1216 1163 1217 expresso_mail_archive.resetObject(); … … 1495 1549 MailArchiver.prototype.deleteAllMessages = function(folderId){ 1496 1550 try{ 1551 1552 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 1553 var local_folder_id = folderid; 1554 if(local_folder_id){ 1555 if(local_folder_id.substr(0,5) == 'local'){ 1556 local_folder_id = local_folder_id.replace("local_messages_",""); 1557 } else if(local_folder_id.substr(0,8) == 'messages'){ 1558 local_folder_id = local_folder_id.replace("messages_",""); 1559 } 1560 } 1561 1497 1562 var objfolder = new Object(); 1498 objfolder.folder = folderId;1563 objfolder.folder = local_folder_id; 1499 1564 1500 1565 var query_data = expresso_mail_archive.queryconfig.query(objfolder); … … 1534 1599 folderid = this.currentfolder; 1535 1600 } 1601 1602 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 1603 var local_folder_id = folderid; 1604 if(local_folder_id){ 1605 if(local_folder_id.substr(0,5) == 'local'){ 1606 local_folder_id = local_folder_id.replace("local_messages_",""); 1607 } else if(local_folder_id.substr(0,8) == 'messages'){ 1608 local_folder_id = local_folder_id.replace("messages_",""); 1609 } 1610 } 1611 1536 1612 var objfolder = new Object(); 1537 objfolder.folder = folderid;1613 objfolder.folder = local_folder_id; 1538 1614 //var testing_data_xml = '<?xml version="1.0" encoding="UTF-8"?><query lowerIndex="0" upperIndex="50"><folder id="'+folderid+'"/><order asc="date"/><order desc="subject"/></query>'; 1539 1615 //var testing_data_json_mapped = '{"query":{"@lowerIndex":"0", "@upperIndex":"50", "folder":[{"@id":"'+folderid+'"}], "order":[{"@asc":"date", "@desc":"subject"}]}}'; 1540 1616 var query_data = expresso_mail_archive.queryconfig.query(objfolder); 1541 expresso_mail_archive.getFolderInfo(folderid); 1617 1618 expresso_mail_archive.getFolderInfo(local_folder_id); 1542 1619 expresso_mail_archive.currentfolder = folderid; 1543 1620 -
trunk/expressoMail1_2/js/main.js
r8109 r8112 1611 1611 //expresso_mail_archive.moveMessages(new_folder.substr(6), msgs_number); 1612 1612 expresso_mail_archive.moveMessages(new_folder.replace('local_messages_', ''), msgs_number); 1613 delete_border(border_ID); 1613 if(currentTab != 0) 1614 delete_border(border_ID); 1614 1615 } 1615 1616 else{ … … 4885 4886 var local_folder = input_hidden.attr("value"); //recupera a pasta selecionada 4886 4887 if(local_folder.indexOf("local_") == 0){ //verifica se a pasta selecionada é uma pasta local 4887 4888 4888 var fdata = local_folder.substr(15, local_folder.length); //recupera somente a estrutura da pasta ou o id 4889 4889 expresso_mail_archive.getFolderInfo(fdata); //recuperar a estrutura da pasta, -
trunk/expressoMail1_2/js/messages_controller.js
r8097 r8112 12 12 if(this.is_local_folder(folder)) { 13 13 //MAILARCHIVER-01 14 var baseFolder = folder.replace('local_messages_', ''); 14 // tratado o caso do id da pasta vir com local_messages_ ou messages_ 15 var baseFolder = folder; 16 if(baseFolder){ 17 if(baseFolder.substr(0,5) == 'local'){ 18 baseFolder = baseFolder.replace("local_messages_",""); 19 } else if(baseFolder.substr(0,8) == 'messages'){ 20 baseFolder = baseFolder.replace("messages_",""); 21 } 22 } 23 15 24 var tree_name; 16 25 var drawinginfo = {};
Note: See TracChangeset
for help on using the changeset viewer.