- Timestamp:
- 12/11/07 16:47:03 (17 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r118 r128 65 65 66 66 var butt = document.createElement('BUTTON'); 67 var buttext = document.createTextNode( get_lang('OK'));67 var buttext = document.createTextNode('OK'); 68 68 butt.id = "QuickCatalogSearch_button_ok"; 69 69 butt.appendChild(buttext); … … 293 293 294 294 var handler_cc_contacts= function(data){ 295 if(data .length > 0){295 if(data && data.length > 0){ 296 296 var aux = data.split(","); 297 297 for(var i=0; i< aux.length; i++){ … … 303 303 304 304 var handler_cc_groups = function(data){ 305 if(data .length > 0){305 if(data && data.length > 0){ 306 306 var aux = data.split(","); 307 307 for(var i=0; i < data.length; i++){ -
trunk/expressoMail1_2/js/TreeS.js
r118 r128 180 180 n_root.changeState(); 181 181 if(opentomb != ""){folders_tree.openTo(opentomb);} 182 if(selected != "" ){folders_tree.getNodeById(selected)._select();}182 if(selected != "" && folders_tree.getNodeById(selected)){folders_tree.getNodeById(selected)._select();} 183 183 184 184 } -
trunk/expressoMail1_2/js/TreeShow.js
r118 r128 91 91 if(this.verify_names(aux2)){ 92 92 if(func == "newpast") 93 if(aux2 == "INBOX"){alert(get_lang("It's not possible create inside : INBOX" ))}else{alert(get_lang("It's not possible create inside : ") + aux2)};93 alert(get_lang("It's not possible create inside")+ " : " + (aux2 == "INBOX" ? get_lang("INBOX"): aux2)); 94 94 if(func == "rename") 95 if(aux2 == "INBOX"){alert(get_lang("It's not possible rename the folder : Caixa de Entrada" ))}else{alert(get_lang("It's not possible rename the folder : ") + aux2)};95 alert(get_lang("It's not possible rename the folder")+ " : " + (aux2 == "INBOX" ? get_lang("INBOX") : aux2)); 96 96 return false; 97 97 }else{ 98 98 if(func == "newpast"){ 99 var button = prompt(get_lang("Enter the name of the new box :"),""); 100 99 var button = prompt(get_lang("Enter the name of the new box :"),""); 101 100 if(trim(button) == "" || trim(button) == null){ 102 101 return false; … … 107 106 if(func == "rename"){ 108 107 if(ttree.FOLDER == "root"){ 109 108 alert(get_lang("It's not possible rename this folder!")); 110 109 return false; 111 110 } 112 111 if(ttree.FOLDER == get_current_folder()){ 113 114 return false; 115 } 116 112 alert(get_lang("It's not possible rename this folder becouse it is being used in the moment!")); 113 return false; 114 } 115 var button1 = prompt(get_lang("Enter a name for the box"), ""); 117 116 if(trim(button1) == "" || trim(button1) == null){ 118 117 return false; … … 123 122 } 124 123 }else{ 125 alert(get_lang("Select a folder"));124 alert(get_lang("Select a folder!")); 126 125 return false; 127 126 } … … 135 134 136 135 if(aux.length == 1 && aux[0] != "root"){ 137 alert(get_lang("It's not possible create inside : ")+ aux[0]);136 alert(get_lang("It's not possible create inside") + " : " + aux[0]); 138 137 newp = ""; 139 138 }else{ 140 139 if( aux[0] == "root"){ 141 140 if(!this.verify(newp)){ 142 141 alert(get_lang("Type without spaces, dots or special characters!")); 143 142 newp = ""; 144 143 return false; … … 149 148 }else{ 150 149 if(!this.verify(newp)){ 151 150 alert(get_lang("Type without spaces, dots or special characters!")); 152 151 newp = ""; 153 152 return false; … … 176 175 // Funcao para renomear a pasta; 177 176 Tree_Box.prototype.rename = function(rename){ 178 179 177 var old_box = ttree.FOLDER; 180 178 var aux = old_box.split(cyrus_delimiter); … … 182 180 183 181 if(old_box == "root"){ 184 alert(get_lang("Select a folder"));182 alert(get_lang("Select a folder!")); 185 183 return false; 186 184 } 187 185 if(aux.length == 1){ 188 alert(get_lang("It's not possible rename : ")+ aux[0]);186 alert(get_lang("It's not possible rename") + " : " + aux[0]); 189 187 rename = ""; 190 188 return false; 191 189 }else{ 192 190 if(this.verify_names(aux[1])){ 193 alert(get_lang("It's not possible rename : ")+ aux[1]);191 alert(get_lang("It's not possible rename") + " : " + aux[1]); 194 192 rename = ""; 195 193 return false; 196 194 }else{ 197 195 if(!this.verify(rename)){ 198 196 alert(get_lang("Type without spaces, dots or special characters!")); 199 197 rename = ""; 200 198 return false; … … 249 247 250 248 if(aux.length == 1){ 251 alert(get_lang("It's not possible delete the folder Inbox"));249 alert(get_lang("It's not possible delete the folder ") + get_lang("Inbox")); 252 250 return false; 253 251 }else{ 254 252 if(this.verify_names(aux[1])){ 255 alert(get_lang("It's not possible delete the folter ") + aux[1]);256 253 alert(get_lang("It's not possible delete the folder ") + aux[1]); 254 return false; 257 255 }else{ 258 256 this.verify_children(ttree.FOLDER); … … 267 265 268 266 if(ttree.FOLDER == get_current_folder()){ 269 270 return false; 271 } 272 if(confirm(get_lang("Do you wish to erase the folder ") + aux1+ "?")){267 alert(get_lang("It's not possible rename this folder, it is begin in use at the moment!")); 268 return false; 269 } 270 if(confirm(get_lang("Do you wish to exclude the folder ") + aux1+ "?")){ 273 271 var handler_return = function(data) 274 272 { … … 279 277 ttree.FOLDER = ""; 280 278 ttreeBox.update_folder(); 281 alert(get_lang("The folder " + aux1 + get_lang(" was successfully erased")));279 alert(get_lang("The folder %1 was successfully removed", aux1)); 282 280 } 283 281 } -
trunk/expressoMail1_2/js/draw_api.js
r118 r128 403 403 } 404 404 405 if ((preferences.use_shortcuts == '1') && (headers_msgs[0])) 406 select_msg(headers_msgs[0].msg_number, 'null'); 407 405 408 var tdFolders = Element("folderscol"); 406 409 tdFolders.style.display = preferences.hide_folders == '1' ? "none" : ""; … … 674 677 next_previous_msg_td.width = "40px"; 675 678 var img_next_msg = document.createElement("IMG"); 679 img_next_msg.id = 'msg_opt_next_' + ID; 676 680 img_next_msg.src = './templates/default/images/down.button.png'; 677 681 img_next_msg.title = get_lang('Next'); … … 681 685 img_space.innerHTML = " "; 682 686 var img_previous_msg = document.createElement("IMG"); 687 img_previous_msg.id = 'msg_opt_previous_' + ID; 683 688 img_previous_msg.src = './templates/default/images/up.button.png'; 684 689 img_previous_msg.title = get_lang('Previous'); … … 776 781 777 782 var option_print = document.createElement("SPAN"); 783 option_print.id = 'msg_opt_print_'+ID; 778 784 option_print.className = 'message_options'; 779 785 option_print.onclick = function(){print_msg(info_msg.msg_folder,info_msg.msg_number,ID);}; … … 782 788 options.appendChild(option_print); 783 789 var option_forward = document.createElement("SPAN"); 790 option_forward.id = 'msg_opt_forward_'+ID; 784 791 option_forward.className = 'message_options'; 785 792 option_forward.onclick = function(){new_message('forward', ID);}; … … 788 795 options.appendChild(option_forward); 789 796 var option_reply = document.createElement("SPAN"); 797 option_reply.id = 'msg_opt_reply_'+ID; 790 798 option_reply.className = 'message_options'; 791 799 option_reply.onclick = function(){new_message('reply_with_history', ID);}; … … 794 802 options.appendChild(option_reply); 795 803 var option_delete = document.createElement("SPAN"); 804 option_delete.id = 'msg_opt_delete_'+ID; 796 805 option_delete.className = 'message_options'; 797 806 option_delete.onclick = function(){delete_msgs(info_msg.msg_folder, info_msg.msg_number, ID);}; … … 817 826 818 827 var option_mark_as = '<span>'+get_lang("Mark as")+'</span>: '; 819 var option_mark_as_unseen = '<span class="message_options" onclick="set_messages_flag(\'unseen\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marke s as Unseen.')+'\');">'+get_lang("Unseen")+'</span>, ';820 var option_mark_as_important = '<span class="message_options" onclick="set_messages_flag(\'flagged\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marke s as Important.')+'\');">'+get_lang("Important")+'</span>, ';821 var option_mark_as_normal = '<span class="message_options" onclick="set_messages_flag(\'unflagged\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marke s as Normal.')+'\');">'+get_lang("Normal")+'</span> | ';828 var option_mark_as_unseen = '<span class="message_options" onclick="set_messages_flag(\'unseen\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marked as ')+get_lang("Unseen")+'.\');">'+get_lang("Unseen")+'</span>, '; 829 var option_mark_as_important = '<span class="message_options" onclick="set_messages_flag(\'flagged\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marked as ')+get_lang("Important")+'.\');">'+get_lang("Important")+'</span>, '; 830 var option_mark_as_normal = '<span class="message_options" onclick="set_messages_flag(\'unflagged\','+info_msg.msg_number+');write_msg(\''+get_lang('Message marked as ')+get_lang("Normal")+'.\');">'+get_lang("Normal")+'</span> | '; 822 831 823 832 var option_move = '<span class="message_options" onclick=wfolders.makeWindow("'+ID+'","move_to");>'+get_lang("Move")+'</span> | '; -
trunk/expressoMail1_2/js/filter.js
r118 r128 496 496 mount_rule += fld_men.value + "&&on "; 497 497 }else{ 498 alert(get_lang("Inform the forwarding e-mail(s)!"));498 alert(get_lang("Inform a forwarding e-mail!")); 499 499 return false; 500 500 } -
trunk/expressoMail1_2/js/filters.js
r118 r128 86 86 list += "<div id='set_rules'>"; 87 87 for(var i=0; i < filter.rulest.length; i++){ 88 list += "<input id=rule_"+i+" type='checkBox'> <img src='"+this.filter_img.src+"' width='16' height='16' border='0'> " + get_lang("Rule : ")+ parseInt(i+1) + " -- " + this.vl_rule(filter.rulest[i],i) + "<br>";88 list += "<input id=rule_"+i+" type='checkBox'> <img src='"+this.filter_img.src+"' width='16' height='16' border='0'> " + get_lang("Rule")+" : " + parseInt(i+1) + " -- " + this.vl_rule(filter.rulest[i],i) + "<br>"; 89 89 } 90 90 } -
trunk/expressoMail1_2/js/main.js
r118 r128 70 70 //Change the tr color to read. 71 71 set_msg_class_to_read(msg_info['msg_number'], true); 72 73 if (preferences.use_shortcuts == '1') 74 select_msg(msg_info.msg_number, 'null'); 72 75 73 76 if ((msg_info.DispositionNotificationTo) && ((msg_info.Unseen == 'U') || (msg_info.Recent == 'N'))){ … … 141 144 msg_to_delete = Element(data.msgs_number[i]); 142 145 if (msg_to_delete){ 146 if ( (msg_to_delete.style.backgroundColor != '') && (preferences.use_shortcuts == '1') ) 147 select_msg('null', 'down'); 143 148 mail_msg.removeChild(msg_to_delete); 144 149 } … … 188 193 msg_to_delete = Element(data.msgs_number[i]); 189 194 if (msg_to_delete){ 195 if ( (msg_to_delete.style.backgroundColor != '') && (preferences.use_shortcuts == '1') ) 196 select_msg('null', 'down'); 190 197 mail_msg.removeChild(msg_to_delete); 191 198 } … … 315 322 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'></body></html>"); 316 323 body.contentWindow.document.close(); 317 body.contentWindow.focus();318 324 body.contentWindow.document.designMode = "on"; 319 325 body.contentWindow.focus(); 326 if (is_ie) 327 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 320 328 msg_reply_from = document.createElement('input'); 321 329 msg_reply_from.id = "msg_reply_from_" + new_border_ID; … … 335 343 body.contentWindow.document.designMode = "on"; 336 344 body.contentWindow.focus(); 345 if (is_ie) 346 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 337 347 msg_reply_from = document.createElement('input'); 338 348 msg_reply_from.id = "msg_reply_from_" + new_border_ID; … … 358 368 body.contentWindow.document.designMode = "on"; 359 369 body.contentWindow.focus(); 370 if (is_ie) 371 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 360 372 msg_reply_from = document.createElement('input'); 361 373 msg_reply_from.id = "msg_reply_from_" + new_border_ID; … … 382 394 body.contentWindow.document.designMode = "on"; 383 395 body.contentWindow.focus(); 396 if (is_ie) 397 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 384 398 msg_reply_from = document.createElement('input'); 385 399 msg_reply_from.id = "msg_reply_from_" + new_border_ID; … … 417 431 body.contentWindow.document.close(); 418 432 body.contentWindow.document.designMode = "on"; 433 if (is_ie) 434 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 419 435 Element("to_" + new_border_ID).focus(); 420 436 break; … … 442 458 body.contentWindow.document.close(); 443 459 body.contentWindow.document.designMode = "on"; 460 if (is_ie) 461 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 444 462 Element("to_" + new_border_ID).focus(); 445 463 break; … … 465 483 body.contentWindow.document.designMode = "on"; 466 484 body.contentWindow.focus(); 485 if (is_ie) 486 body.contentWindow.document.onkeypress = function(){if(body.contentWindow.event.keyCode == 13){changeEnterKey(body.contentWindow)}}; 467 487 break; 468 488 default: … … 483 503 484 504 Element("border_id_" + new_border_ID).innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + new_border_ID +" class='font-menu' width=*>" +title + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + new_border_ID + "','false') src='templates/default/images/close_button.gif'></td></tr></table>"; 505 } 506 507 // Change the tag <P> for the tag <BR> on IE 508 function changeEnterKey(win) { 509 var oSel = win.document.selection.createRange(); 510 oSel.pasteHTML("<br />"); 511 win.event.cancelBubble = true; 512 win.event.returnValue=false; 513 oSel.select(); 514 oSel.moveEnd("character",1); 515 oSel.moveStart("character",1); 516 oSel.collapse(false); 517 return false; 485 518 } 486 519 -
trunk/expressoMail1_2/js/preferences.js
r83 r128 72 72 "<option value='11'>"+get_lang("Normal")+"</option>"+ 73 73 "<option value='15'>"+get_lang("Big")+"</option>"+ 74 "</select></td>"+ 75 "</tr>"+ 74 "</select></td></tr>"+ 75 "<tr><td> - " + get_lang("Use shortcuts") + "?" + "</td>"+ 76 "<td><input type='checkBox' id='check_use_shortcuts' name='check_use_shortcuts'></td></tr>"+ 76 77 "<tr><td colspan='2'> - " + get_lang('Signature') + "<br>"+ 77 78 "<textarea id='txt_signature' name='txt_signature' rows='3' cols='59'></textarea></td>"+ … … 80 81 "<td align='left'><input type='button' value='"+get_lang("Save")+"' onclick='prefe.save_form()'>"+ 81 82 "</tr>"+ 82 "</table>"; 83 "</table>"; 83 84 form_pref.appendChild(form); 84 85 var sel_nm = Element("sel_name_box"); … … 129 130 var txt_signature = Element("txt_signature"); 130 131 txt_signature.value = preferences.signature; 132 133 if( preferences.use_shortcuts == 1){Element("check_use_shortcuts").checked = true;} 131 134 } 132 135 … … 147 150 reload_page = true; 148 151 else if(preferences.font_size != Element("sel_size_font").value) 152 reload_page = true; 153 else if(preferences.use_shortcuts != Element("check_use_shortcuts").checked) 149 154 reload_page = true; 150 155 … … 170 175 prefe_string += Element("sel_size_font").value + "##"; 171 176 preferences.signature = Element("txt_signature").value; 172 prefe_string += url_encode(Element("txt_signature").value); 177 prefe_string += url_encode(Element("txt_signature").value) + "##"; 178 preferences.check_use_shortcuts = Element("check_use_shortcuts").checked ? 1 : 0; 179 prefe_string += Element("check_use_shortcuts").checked ? "1":"0"; 173 180 174 181 var _this = this; … … 187 194 var params = "prefe_string="+prefe_string; 188 195 cExecute(args,handler_preferences,params); 189 190 196 } 191 197 //Fecha a janela … … 209 215 210 216 if(! this.prefeW[div.id]) { 211 div.style.height = is_ie ? "3 45px" : "355px";217 div.style.height = is_ie ? "355px" : "365px"; 212 218 div.style.width = "510px"; 213 219 div.style.visibility = "hidden"; -
trunk/expressoMail1_2/js/search.js
r118 r128 411 411 fields += "##"; 412 412 if(fields == "####"){ 413 alert(get_lang("Define some parameters!"));413 alert(get_lang("Define some search parameters!")); 414 414 return false; 415 415 } … … 474 474 div.style.position = "absolute"; 475 475 div.style.zIndex = "10003"; 476 var title = get_lang(":: Search ::");476 var title = ":: "+ get_lang("Search")+" ::"; 477 477 var wHeight = div.offsetHeight + "px"; 478 478 var wWidth = div.offsetWidth + "px"; -
trunk/expressoMail1_2/js/sharemailbox.js
r118 r128 243 243 div.style.height = "460px"; 244 244 div.style.width = "540px"; 245 var title = get_lang(":: Mailbox Sharing ::");245 var title = ":: "+get_lang("Mailbox Sharing")+" ::"; 246 246 var wHeight = div.offsetHeight + "px"; 247 247 var wWidth = div.offsetWidth + "px";
Note: See TracChangeset
for help on using the changeset viewer.