Changeset 2572
- Timestamp:
- 04/16/10 17:36:06 (14 years ago)
- Location:
- trunk/expressoMail1_2/js/jscode
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/DropDownContacts.js
r2561 r2572 16 16 div_message_scroll = Element('div_message_scroll_'+ fld_id.substring(fld_id.length - 1, fld_id.length)); 17 17 18 var string_contacts = contacts 18 var string_contacts = contacts; 19 19 if (Element(fld_id)) 20 20 var mail = Element(fld_id).value; … … 91 91 } 92 92 //lines = lines + "<tr><td id=td_DD_"+i+" onClick=\"javascript:hideTip();makeMailList('"+match_contacts[i]+"','"+fld_id+"');document.getElementById('" + fld_id + "').focus();\" onmouseover=\"selectContact("+i+")\">" + match_contacts[i] + "</td></tr>" 93 lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>" 93 lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>"; 94 94 match_cont = ""; 95 95 } … … 128 128 129 129 if (lines != ''){ 130 table_contacts = table_contacts_header + lines + table_contacts_foot 131 doTooltip(posX, posY, table_contacts) 130 table_contacts = table_contacts_header + lines + table_contacts_foot; 131 doTooltip(posX, posY, table_contacts); 132 132 } 133 133 else … … 140 140 { 141 141 list = Element(fld_id); 142 for (var i = list.value.length; ((i!=0) && (list.value.substring(i-1,i)!=',')); i--) {}142 for (var i = list.value.length; ((i!=0) && (list.value.substring(i-1,i)!=',')); i--) { }; 143 143 mail = mail.replace(/</g,"<"); 144 144 mail = mail.replace(/>/g,">"); … … 183 183 while (obj.offsetParent) 184 184 { 185 curleft += obj.offsetLeft 185 curleft += obj.offsetLeft; 186 186 obj = obj.offsetParent; 187 187 } … … 199 199 while (obj.offsetParent) 200 200 { 201 curtop += obj.offsetTop 201 curtop += obj.offsetTop; 202 202 obj = obj.offsetParent; 203 203 } -
trunk/expressoMail1_2/js/jscode/InfoContact.js
r2561 r2572 21 21 card.innerHTML = "<table onmouseout='InfoContact.timeout_hide=setTimeout(\"InfoContact.hide()\",50);' onmouseover='clearTimeout(InfoContact.timeout_hide);' cellpadding=0 cellspacing=0 width='100%' height='100%'><tr><td valign='center' align='center' id='card_cc_td'></td></tr></table>"; 22 22 document.body.appendChild(card); 23 } 23 }; 24 24 emInfoContact.prototype.begin = function(td, email){ 25 25 … … 32 32 } 33 33 this.timeout = setTimeout("InfoContact.search('"+email+"')",1000); 34 } 34 }; 35 35 36 36 emInfoContact.prototype.label = function (text){ … … 52 52 div_label.style.display = ''; 53 53 setTimeout("InfoContact.hide()",1000); 54 } 54 }; 55 55 56 56 emInfoContact.prototype.connectVoip = function (phoneUser, typePhone){ … … 62 62 alert(get_lang("Requesting a VoIP call")+":\n"+data); 63 63 } 64 } 64 }; 65 65 cExecute ("expressoMail1_2.functions.callVoipConnect&to="+phoneUser+"&typePhone="+typePhone, handler_connectVoip); 66 } 66 }; 67 67 68 68 emInfoContact.prototype.show = function (data){ … … 101 101 102 102 this.timeout_hide = setTimeout("InfoContact.hide()",1000); 103 } 103 }; 104 104 105 105 emInfoContact.prototype.search = function (email){ … … 123 123 else 124 124 _this.label(email); 125 } 125 }; 126 126 127 127 if (trustedDomain) … … 129 129 else 130 130 _this.label(email); 131 } 131 }; 132 132 133 133 emInfoContact.prototype.hide = function(){ … … 138 138 if(Element("card_cc")) 139 139 Element("card_cc").style.display = "none"; 140 } 140 }; 141 141 142 142 emInfoContact.prototype.sendMail = function(name, email){ … … 144 144 InfoContact.hide(); 145 145 new_message("new","null"); 146 } 146 }; 147 147 148 148 emInfoContact.prototype.openChat = function(event, email){ 149 149 IM.action_button(event, '1', email ,false); 150 } 150 }; 151 151 152 152 emInfoContact.prototype.verifyIM = function(uid, email){ … … 172 172 173 173 return _return; 174 } 174 }; 175 175 /* Build the Object */ 176 176 var emInfoContact; -
trunk/expressoMail1_2/js/jscode/color_palette.js
r2517 r2572 12 12 new Array("#000000","#330000","#663300","#663333","#333300","#003300","#003333","#000066","#330099","#330033")); 13 13 this.buildPalette(); 14 } 14 }; 15 15 16 16 // funçoes … … 20 20 document.getElementById("palettecolor").style.visibility="hidden"; 21 21 mainField.focus(); 22 } 22 }; 23 23 24 24 cColorPalette.prototype.repos = function (intElemScrollTop) … … 26 26 var new_pos = findPosY(Element("forecolor")) - intElemScrollTop + 20; 27 27 this.div.style.top = new_pos; 28 } 28 }; 29 29 30 30 cColorPalette.prototype.loadPalette = function (id) … … 48 48 this.div.style.left = findPosY(Element("forecolor"))+ 227; 49 49 } 50 } 50 }; 51 51 52 52 cColorPalette.prototype.buildPalette = function (){ … … 83 83 _td.onclick= function(){ document.getElementById("palettecolor").style.visibility="hidden";ColorPalette.changeFontColor(this.id);}; 84 84 _td.onmouseover = function(){ this.className = "sel_color";}; 85 _td.onmouseout = function(){ this.className = "unsel_color";} 85 _td.onmouseout = function(){ this.className = "unsel_color";}; 86 86 var p = new Image(); 87 87 p.style.width='1px'; … … 91 91 } 92 92 } 93 } 93 }; 94 94 95 95 /* Build the Object */ -
trunk/expressoMail1_2/js/jscode/doiMenuData.js
r2521 r2572 73 73 unset_menu_bg(Element("link_tools")); 74 74 _timeout = setTimeout("_hideMenuTools();",500); 75 } 75 }; 76 76 77 77 var _t = document.createElement("TABLE"); … … 126 126 _tr.appendChild(_td); 127 127 return _tr; 128 } 128 }; 129 129 130 130 for(i = 0; i < itens.length; i++) -
trunk/expressoMail1_2/js/jscode/drag_area.js
r2561 r2572 133 133 { 134 134 return false; 135 } 135 }; 136 136 137 137 var _this = this; … … 151 151 }; 152 152 153 } 153 }; 154 154 155 155 DragArea.prototype.makeDragged = function(element, msg_number, subject, from_list, folder){ 156 156 element.oncontextmenu = function(e) { 157 157 return false; 158 } 158 }; 159 159 var _this = this; 160 160 element.onmousedown = function (e){ … … 192 192 return true; 193 193 }; 194 } 194 }; 195 195 DragArea.prototype.showLayerDrag = function(e){ 196 196 … … 214 214 this.div_dd.innerHTML = "<img align='center' src='"+this.envelope.src+"'> <span id='content_dd'><font color='red' weight='bold'><b>"+this.subject+"</b></span></font>"; 215 215 this.div_dd.style.display =''; 216 } 216 }; 217 217 218 218 DragArea.prototype.onSelectStart = function(value){ 219 219 if(!value) { 220 document.body.onselectstart = function (e){return false;} 221 document.body.ondragstart = function (e){return false;} 220 document.body.onselectstart = function (e){return false;}; 221 document.body.ondragstart = function (e){return false;}; 222 222 } 223 223 else { 224 document.body.onselectstart = function (e){return true;} 225 document.body.ondragstart = function (e){return true;} 226 } 227 } 224 document.body.onselectstart = function (e){return true;}; 225 document.body.ondragstart = function (e){return true;}; 226 } 227 }; 228 228 229 229 DragArea.prototype.mouseMoveDrag = function(e){ … … 254 254 255 255 return false; 256 } 256 }; -
trunk/expressoMail1_2/js/jscode/load_lang.js
r2561 r2572 4 4 var _connector = new XConnector; 5 5 6 _connector.cache(); 6 7 var request = _connector.go( { 7 8 'access' : URL_SERVER + '/expressoMail1_2/inc/load_lang.php?lang=' + lang, -
trunk/expressoMail1_2/js/jscode/messages_controller.js
r2519 r2572 18 18 cExecute ("expressoMail1_2.imap_functions.get_range_msgs2&folder="+folder+"&msg_range_begin="+msg_range_begin+"&msg_range_end="+emails_per_page+"&sort_box_type="+sort_box_type+ "&search_box_type="+ search_box_type +"&sort_box_reverse="+sort_box_reverse+"", call_back); 19 19 } 20 } 20 }; 21 21 22 22 messages_proxy.prototype.get_msg = function(msg_number,msg_folder,set_flag,call_back) { … … 31 31 cExecute("expressoMail1_2.imap_functions.get_info_msg&msg_number="+ msg_number + "&msg_folder=" + url_encode(msg_folder), call_back); 32 32 } 33 } 33 }; 34 34 35 35 messages_proxy.prototype.delete_msgs = function(folder, msgs_number, border_ID) { … … 46 46 draw_tree_local_folders(); 47 47 } 48 } 48 }; 49 49 50 50 messages_proxy.prototype.link_anexo = function (info_msg,numero_ordem_anexo) { … … 58 58 return "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')"; 59 59 } 60 } 60 }; 61 61 62 62 messages_proxy.prototype.proxy_source_msg = function (id_msg,folder) { … … 68 68 expresso_local_messages.get_source_msg(num_msg); 69 69 } 70 } 70 }; 71 71 72 72 messages_proxy.prototype.proxy_set_messages_flag = function (flag,msg_number){ … … 77 77 set_messages_flag(flag,msg_number); 78 78 } 79 } 79 }; 80 80 81 81 messages_proxy.prototype.proxy_set_message_flag = function (msg_number,flag){ 82 82 var msg_number_folder = Element("new_input_folder_"+msg_number+"_r"); 83 var folder = msg_number_folder ? msg_number_folder.value : get_current_folder() 83 var folder = msg_number_folder ? msg_number_folder.value : get_current_folder(); 84 84 if(this.is_local_folder(folder)) { 85 85 expresso_local_messages.set_message_flag(msg_number,flag); … … 88 88 set_message_flag(msg_number,flag); 89 89 } 90 } 90 }; 91 91 92 92 messages_proxy.prototype.is_local_folder = function(folder) { … … 94 94 return false; 95 95 return true; 96 } 96 }; 97 97 98 98 … … 122 122 } 123 123 124 } 124 }; 125 125 126 126 messages_proxy.prototype.proxy_create_folder = function() { … … 147 147 else 148 148 alert(get_lang("It's not possible create inside: ") + lang_folder(ttree.FOLDER.substr(6))); 149 } 149 }; 150 150 151 151 messages_proxy.prototype.proxy_remove_folder = function() { … … 176 176 else 177 177 ttreeBox.del(); 178 } 178 }; 179 179 180 180 messages_proxy.prototype.proxy_move_messages = function (folder, msgs_number, border_ID, new_folder, new_folder_name) { … … 218 218 219 219 220 } 220 }; 221 221 222 222 messages_proxy.prototype.proxy_move_search_messages = function(border_id, new_folder, new_folder_name) { … … 252 252 write_msg(get_lang("you can't move mails from local to server folders")); 253 253 }*/ 254 } 254 }; 255 255 256 256 messages_proxy.prototype.aux_interface_remove_mails = function(msgs_number,new_folder_name,border_ID,previous_msg) { … … 279 279 refresh(); 280 280 281 } 281 }; 282 282 283 283 messages_proxy.prototype.msg_img = function(msgs_number,folder_name,call_back) { … … 291 291 cExecute('expressoMail1_2.imap_functions.get_info_msg&msg_number='+msgs_number+'&msg_folder='+url_encode(folder_name),call_back); 292 292 } 293 } 293 }; 294 294 295 295 messages_proxy.prototype.export_all_messages = function(folder){ … … 304 304 local_messages.prototype.local_messages_to_export(); 305 305 } 306 } 306 }; 307 307 308 308 messages_proxy.prototype.proxy_export_all_msg=function(){ … … 322 322 expresso_local_messages.get_all_local_folder_messages(name_f); 323 323 } 324 } 324 }; 325 325 326 326 var proxy_mensagens; -
trunk/expressoMail1_2/js/jscode/rich_text_editor.js
r2561 r2572 6 6 this.buildEditor(); 7 7 this.saveFlag = 0; 8 } 8 }; 9 9 10 10 cRichTextEditor.prototype.loadEditor = function(ID) { … … 36 36 document.getElementById('fontname').selectedIndex = 0; 37 37 document.getElementById('fontsize').selectedIndex = 0; 38 } 38 }; 39 39 40 40 cRichTextEditor.prototype.createElementEditor = function(pObj) … … 65 65 parentDiv.appendChild(checkbox); 66 66 parentDiv.appendChild(text); 67 } 67 }; 68 68 69 69 cRichTextEditor.prototype.viewsource = function(source) { … … 100 100 } 101 101 } 102 } 102 }; 103 103 104 104 cRichTextEditor.prototype.buildEditor = function() { … … 203 203 tbody.appendChild(tr); 204 204 this.table.appendChild(tbody); 205 } 205 }; 206 206 207 207 cRichTextEditor.prototype.editorCommand = function(command, option) { … … 245 245 //mainField.focus(); 246 246 } catch (e) {/* alert(e);*/ } 247 } 247 }; 248 248 249 249 cRichTextEditor.prototype.createLink = function(){ … … 265 265 this.editorCommand("CreateLink", szURL); 266 266 } 267 } 267 }; 268 268 269 269 // It include the image file in emails body … … 309 309 save_msg(id,true); 310 310 setTimeout("RichTextEditor.insertImgHtml("+id+")",1000); 311 } 311 }; 312 312 313 313 cRichTextEditor.prototype.insertImgHtml = function (id){ … … 318 318 this.editorCommand('Image', './inc/show_embedded_attach.php?msg_folder=INBOX/'+draftsfolder+'&msg_num='+openTab.imapUid[id]+'&msg_part='+(openTab.countFile[id]+1)); 319 319 // this.editorCommand('Image', '.inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params')); 320 } 320 }; 321 321 322 322 cRichTextEditor.prototype.insertTableHtml = function (){ … … 334 334 insertTable += "</tbody></table>"; 335 335 this.editorCommand('Table', insertTable); 336 } 336 }; 337 337 338 338 cRichTextEditor.prototype.createTable = function(){ … … 370 370 371 371 this.showWindow(form); 372 } 372 }; 373 373 374 374 cRichTextEditor.prototype.incrementField = function(id_val){ 375 375 var field_text = document.getElementById(id_val); 376 376 field_text.value = parseInt(field_text.value)+1; 377 } 377 }; 378 378 379 379 cRichTextEditor.prototype.decrementField = function(id_val){ … … 381 381 if (parseInt(field_text.value) > 0) 382 382 field_text.value = parseInt(field_text.value)-1; 383 } 383 }; 384 384 385 385 cRichTextEditor.prototype.createImage = function(){ … … 419 419 420 420 this.showWindow(form); 421 } 421 }; 422 422 cRichTextEditor.prototype.showWindow = function (div){ 423 423 … … 453 453 win = this.emwindow[div.id]; 454 454 win.open(); 455 } 455 }; 456 456 457 457 cRichTextEditor.prototype.Select = function(selectname) … … 466 466 } 467 467 mainField.focus(); 468 } 468 }; 469 469 470 470 cRichTextEditor.prototype.show_pc = function(command) … … 476 476 else 477 477 this.hide_pc(); 478 } 478 }; 479 479 480 480 cRichTextEditor.prototype.hide_pc = function() 481 481 { 482 482 document.getElementById("palettecolor").style.visibility="hidden"; 483 } 483 }; 484 484 485 485 cRichTextEditor.prototype.getOffsetTop = function(elm) { 486 var mOffsetTop = elm.offsetTop; 1486 var mOffsetTop = elm.offsetTop; 487 487 var mOffsetParent = elm.offsetParent; 488 488 while(mOffsetParent){ … … 491 491 } 492 492 return mOffsetTop; 493 } 493 }; 494 494 495 495 cRichTextEditor.prototype.getOffsetLeft = function(elm) { … … 501 501 } 502 502 return mOffsetLeft; 503 } 503 }; -
trunk/expressoMail1_2/js/jscode/wfolders.js
r2517 r2572 28 28 el.appendChild(space); 29 29 30 var butt = Element('dJSWin_wfolders_bok') 30 var butt = Element('dJSWin_wfolders_bok'); 31 31 if (!butt){ 32 32 butt = document.createElement('INPUT'); … … 116 116 wfolders_tree.getNodeById('local_Inbox')._select(); 117 117 _this.showWindow(el, type); 118 } 118 }; 119 119 120 120 cWFolders.prototype.makeWindow = function(border_id, type) 121 121 { 122 122 this.makeWindowNew(border_id,type,false); 123 } 123 }; 124 124 125 125 cWFolders.prototype.showWindow = function (div, type) … … 157 157 } 158 158 win.open(); 159 } 159 }; 160 160 161 161 /* Build the Object */
Note: See TracChangeset
for help on using the changeset viewer.