Changeset 6890 for sandbox/2.4.2-expresso2
- Timestamp:
- 07/27/12 14:39:12 (12 years ago)
- Location:
- sandbox/2.4.2-expresso2/expressoMail1_2/js
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso2/expressoMail1_2/js/TreeS.js
r5744 r6890 4 4 5 5 function foldersExpresso(){ } 6 7 function load()8 {9 var div = document.createElement("div");10 11 var args =12 {13 "delete_folder" : get_lang('Delete folder'),14 "export_messages" : get_lang('Export messages'),15 "new_folder" : get_lang('New folder'),16 "rename_folder" : get_lang('Rename folder')17 };18 19 $(div).html(DataLayer.render("./templates/default/folderExpresso.ejs", args ));20 21 $(div).dialog(22 {23 resizable : false,24 title : get_lang("Manager your folders and export messages"),25 position : 'center',26 width : 600,27 height : 300,28 modal : false,29 buttons : [30 {31 text: get_lang("Close"),32 click: function()33 {34 $(this).dialog("destroy");35 div.removeChild( div.firstChild );36 },37 style: "margin-top: -2.1em"38 }39 ],40 beforeClose : function()41 {42 $(this).dialog("destroy");43 div.removeChild( div.firstChild );44 },45 open : function()46 {47 if( folders.length == 0 )48 {49 write_msg( "ERRO : Sem dados" );50 $(div).dialog("destroy");51 div.removeChild(div.firstChild);52 return false;53 }54 else55 {56 if( Element('dftree_treeFolders') != null )57 {58 $(div).dialog("destroy");59 div.removeChild( div.firstChild );60 return;61 }62 else63 {64 make_tree(div.firstChild);65 }66 }67 }68 });69 }70 71 6 72 7 function make_tree() … … 185 120 FOLDER = arguments[0]; 186 121 } 187 188 foldersExpresso.prototype.load = load; 122 189 123 foldersExpresso.prototype.getFolder = getFolder; 190 124 foldersExpresso.prototype.setFolder = setFolder; -
sandbox/2.4.2-expresso2/expressoMail1_2/js/common_functions.js
r6874 r6890 626 626 else 627 627 cExecute ("$this.ldap_functions.quicksearchcontact&search_for="+search_for+"&field="+field+"&ID="+ID+"&Type="+Type, handler_emQuickSearch); 628 }629 630 function folderbox()631 {632 connector.loadScript("TreeS");633 634 if( typeof(window.ttree) == 'undefined')635 setTimeout(function(){ folderbox(); }, 200 );636 else637 ttree.load();638 628 } 639 629 -
sandbox/2.4.2-expresso2/expressoMail1_2/js/doiMenuData.js
r6541 r6890 140 140 "i02": {"name": get_lang("Search"), "icon": "search-mail", callback: function(key, opt){ search_emails(""); }}, 141 141 "103": {"name": get_lang("Edit filters"), "icon": "filter", callback: filterbox2 }, 142 "i04": {"name": get_lang("Edit folders"), "icon": "edit-folder", callback: folderbox },143 142 "i05": {"name": get_lang("Share mailbox"), "icon": "share-mailbox", callback: sharebox }, 144 143 "i06": {"name": get_lang("Labels"), "icon": "tag", callback: configureLabels }, … … 153 152 } else { 154 153 var menuToolsItems = { 155 "i01": {"name": get_lang("Search"), "icon": "search-mail", callback: function(key, opt){ search_emails(""); }}, 156 "i02": {"name": get_lang("Edit folders"), "icon": "edit-folder", callback: folderbox } 154 "i01": {"name": get_lang("Search"), "icon": "search-mail", callback: function(key, opt){ search_emails(""); }} 157 155 } 158 156 } -
sandbox/2.4.2-expresso2/expressoMail1_2/js/draw_api.js
r6875 r6890 1590 1590 Element('msg_number').value = ''; 1591 1591 } 1592 var scripts = new Array("InfoContact", 1593 "TreeShow"); 1594 connector.loadAllScripts(scripts); 1592 connector.loadScript("InfoContact"); 1595 1593 // Loading Quota View Folder Component (if exists...) 1596 1594 if(Element("table_quota")) -
sandbox/2.4.2-expresso2/expressoMail1_2/js/mail_sync.js
r5134 r6890 49 49 50 50 mail_sync.prototype.start_sync = function() { 51 if (is_ie)52 connector.loadScript('TreeShow');53 51 if(this.working) { 54 52 //Já está sincronizando... -
sandbox/2.4.2-expresso2/expressoMail1_2/js/main.js
r6889 r6890 100 100 if (preferences.use_local_messages==1) { //O I.E 7 estava se atrapalhando caso esses loads fossem feitos após as chamadas ajax. Antes não apresentou problemas... 101 101 connector.loadScript('mail_sync'); 102 if (is_ie)103 connector.loadScript('TreeShow');104 102 setTimeout('auto_archiving()', 30000); 105 103 … … 1087 1085 var move_to_folder = data.match(/^(.*)Spam(.*)$/) ? "Spam" : special_folders['Trash']; 1088 1086 alert(get_lang('There is not %1 folder, Expresso is creating it for you... Please, repeat your request later.', folder_error)); 1089 connector.loadScript('TreeShow');1090 1087 ttree.FOLDER = 'root'; 1091 ttreeBox.new_past(move_to_folder);1088 create_new_folder(move_to_folder,"INBOX"); 1092 1089 return false; 1093 1090 }else{ -
sandbox/2.4.2-expresso2/expressoMail1_2/js/manifest
r4342 r6890 44 44 { "url": "sniff_browser.js?1.222" }, 45 45 { "url": "TreeS.js?1.222" }, 46 { "url": "TreeShow.js?1.222" },47 46 { "url": "offline_access.js?1.222" }, 48 47 { "url": "lert/lert.js" },
Note: See TracChangeset
for help on using the changeset viewer.