Changeset 4943 for branches/2.2/expressoMail1_2
- Timestamp:
- 08/17/11 15:36:20 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/abas.js
r4919 r4943 45 45 for (i = 0; i < spans_search.length; i++){ 46 46 span_search = spans_search[i]; 47 span_search.className == 'message_options_export'?span_search.style.display = (openTab.type[ID] == 0? '' : 'none'):'';47 span_search.className == 'message_options_export'?span_search.style.display = (openTab.type[ID] != 1 ? '' : 'none'):''; 48 48 span_search.className == 'message_options_import'?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; 49 49 (span_search.title == get_lang("Archive") || span_search.title == get_lang("Unarchive"))?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; … … 135 135 } 136 136 137 function create_border(borderTitle, id_value) 138 { 139 if (borderTitle == get_lang("Server Results")) 140 id_value = "search_" + parseInt(BordersArray.length-1) + 1; 137 function create_border(borderTitle, id_value, border_type) 138 { 141 139 borderTitle = ( ( borderTitle && borderTitle.constructor == String && borderTitle.length > 0 ) ? borderTitle : ' ' ); 142 140 … … 210 208 211 209 Element("exmail_main_body").insertBefore(div,Element("footer_menu")); 210 211 if(border_type) 212 openTab.type[ID] = border_type; 212 213 alternate_border(ID); 213 214 return ID; -
branches/2.2/expressoMail1_2/js/search.js
r4612 r4943 375 375 numBox++; 376 376 377 if( Data['data'] )378 var border_id = create_border(get_lang("Server Results"), "search_" + numBox );377 if( Data['data'] ) 378 var border_id = create_border(get_lang("Server Results"), "search_" + numBox,1); 379 379 380 380 if( Data['data_gears']) 381 var border_id = create_border(get_lang("Local Results"), "search_local_msg" + numBox );381 var border_id = create_border(get_lang("Local Results"), "search_local_msg" + numBox,1); 382 382 383 383 if (!border_id) … … 387 387 openTab.content_id[currentTab] = Element('content_id_search_' + numBox); 388 388 openTab.type[currentTab] = 1; 389 389 390 390 var table = document.createElement("TABLE"); 391 391 table.id = "table_resultsearch_" + numBox; … … 1066 1066 } 1067 1067 } 1068 1069 var footer_menu = Element("footer_menu"); 1070 if (footer_menu) { 1071 footer_menu.style.display = (openTab.type[ID] != 4 ? '' : 'none'); 1072 1073 var options_search = Element('span_options'); 1074 if (options_search){ 1075 var spans_search = options_search.getElementsByTagName("span"); 1076 var span_search; 1077 1078 //alert(openTab.type[ID]); 1079 for (i = 0; i < spans_search.length; i++){ 1080 span_search = spans_search[i]; 1081 span_search.className == 'message_options_export'?span_search.style.display = (openTab.type[ID] != 1 ? '' : 'none'):''; 1082 span_search.className == 'message_options_import'?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; 1083 (span_search.title == get_lang("Archive") || span_search.title == get_lang("Unarchive"))?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; 1084 1085 } 1086 1087 } 1088 1089 } 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1068 1101 } 1069 1102
Note: See TracChangeset
for help on using the changeset viewer.