Changeset 5172 for trunk/expressoMail1_2/js/common_functions.js
- Timestamp:
- 11/11/11 16:42:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/common_functions.js
r5134 r5172 684 684 685 685 function search_emails(value){ 686 var resize = false; 687 resize = resize_borders(); 688 if (!resize){ 689 var str_continue = ''; 690 var bolContinue = true; 691 str_continue = '\n' + get_lang('You must manually close one of your tabs before opening a new one'); 692 if (preferences.auto_close_first_tab == 1){ 693 var children = Element('border_tr').childNodes; 694 var bolDelete = true; 695 for (var i=0; i<children.length; i++) { 696 if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')) 697 { 698 bolDelete = true; 699 var num_child = children[i].id.toString().substr(10); 700 alternate_border(num_child); 701 if (editTest(num_child)){ 702 bolDelete = false; 703 } 704 if (bolDelete || bolContinue){ 705 str_fechar = '\n' + get_lang('Reached maximum tab limit. Want to close this tab'); 706 var confirmacao = confirm(str_fechar); 707 if(confirmacao){ 708 bolContinue = false; 709 delete_border(num_child, 'false'); 710 return; 711 }else{ 712 return; 713 } 714 } 715 } 716 } 717 }else{ 718 alert(get_lang('Reached maximum tab limit') + str_continue ); 719 return; 720 } 721 } 686 722 connector.loadScript("TreeS"); 687 723 connector.loadScript("search"); … … 691 727 } 692 728 EsearchE.showForms(value); 693 }729 } 694 730 695 731 function source_msg(id_msg,folder){
Note: See TracChangeset
for help on using the changeset viewer.