Changeset 812
- Timestamp:
- 05/07/09 16:49:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/common_functions.js
r689 r812 51 51 } 52 52 } 53 53 54 if(Element('content_folders')) 54 55 Element('content_folders').style.height = defaultHeight - (is_ie ? 165 : 150); 55 56 if(Element("divScrollMain_"+numBox)) 56 Element("divScrollMain_"+numBox).style.height = defaultHeight - (is_ie ? 111 : 110); 57 Element("divScrollMain_"+numBox).style.height = defaultHeight - (is_ie ? 111 : 110); 57 58 } 58 59 // END: FUNCTION RESIZE WINDOW … … 76 77 77 78 // Translate words and phrases using user language from eGroupware. 78 function get_lang(_key,_arg1,_arg2,_arg3,_arg4) { 79 79 function get_lang(_key) { 80 80 var key = _key.toLowerCase(); 81 82 83 84 85 86 if( _arg1)87 for(j = 1; eval("_arg"+j); j++)88 _value = _value.replace("%"+j,eval("_arg"+j));81 if(array_lang[key]) 82 var _value = array_lang[key]; 83 else 84 var _value = _key+"*"; 85 86 if(arguments.length > 1) 87 for(j = 1; typeof(arguments[j]) != 'undefined'; j++) 88 _value = _value.replace("%"+j,arguments[j]); 89 89 return _value; 90 } 90 } 91 91 92 // Make decimal round, using in size message 92 93 function round(value, decimal){ … … 660 661 function increment_folder_unseen(){ 661 662 var folder_id = get_current_folder(); 662 663 663 664 var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 664 665 var abas_unseen = Element('new_m').innerHTML; … … 675 676 } 676 677 if (abas_unseen) 677 678 679 680 }681 682 683 684 685 678 { 679 abas_unseen = parseInt(abas_unseen) + 1; 680 Element('new_m').innerHTML = '<font style="color:red">' + abas_unseen + '</font>'; 681 } 682 else{ 683 abas_unseen = Element('new_m').innerHTML; 684 abas_unseen = abas_unseen.match( /[0-9]+/); 685 abas_unseen = parseInt(abas_unseen) + 1; 686 Element('new_m').innerHTML = '<font style="color:red">' + abas_unseen + '</font>'; 686 687 } 687 688 } 688 689 function decrement_folder_unseen(){ 689 690 var folder_id = get_current_folder(); 690 691 691 692 var folder_unseen = Element('dftree_'+folder_id+'_unseen'); 692 693 var abas_unseen = Element('new_m').innerHTML; … … 711 712 abas_unseen = (parseInt(abas_unseen) - 1); 712 713 Element('new_m').innerHTML = '<font style="color:red">' + abas_unseen + '</font>'; 713 }714 } 714 715 else if (parseInt(abas_unseen) <= 1) 715 716 { … … 722 723 var strTemp = ""; 723 724 var iTemp = 0; 724 725 725 726 if(v_length < 1) 726 727 return ""; … … 734 735 } 735 736 iTemp++; 736 } 737 } 737 738 return strTemp; 738 739 } … … 761 762 } 762 763 763 764 function lang_folder(fn) { 764 765 if (fn.toUpperCase() == "INBOX") return get_lang("Inbox"); 765 766 if (special_folders[fn] && typeof(special_folders[fn]) == 'string') { … … 767 768 } 768 769 return fn; 769 770 } 770 771 771 772 function add_className(obj, className){
Note: See TracChangeset
for help on using the changeset viewer.