Changeset 5588
- Timestamp:
- 02/29/12 16:15:37 (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/common_functions.js
r5582 r5588 699 699 } 700 700 701 701 var roles = get_selected_messages_search_role().split(','); 702 702 for (var i=0; i<selectedMessageIds.length; i++) { 703 703 if (currentTab == 0) { 704 704 folder_name = current_folder; 705 var number = selectedMessageIds[i]; 705 706 }else{ 706 folder_name = $('#'+selectedMessageIds[i]+'_s'+id_border).attr('name'); 707 } 708 messages.push(onceOpenedHeadersMessages[folder_name][selectedMessageIds[i]]); 707 var tr = $('[role="'+roles[i]+'"]'); 708 folder_name = $(tr).attr('name'); 709 var id = $(tr).attr('id'); 710 var number = id.replace(/_[a-zA-Z0-9]+/,""); 711 } 712 messages.push(onceOpenedHeadersMessages[folder_name][number]); 709 713 } 710 714 -
trunk/expressoMail1_2/js/draw_api.js
r5587 r5588 4421 4421 else 4422 4422 changeBgColorToON(all_messages, first_order, last_order); 4423 }else if(event.target != document.getElementById(getTabPrefix()+'check_box_message_' + msg_number)){ 4424 if($(event.target).attr("checked") == "checked"){ 4425 $(event.target).parents("tr:first").addClass("selected_msg"); 4426 }else{ 4427 $(event.target).parents("tr:first").removeClass("selected_msg"); 4428 } 4423 4429 } 4424 4430 else{ -
trunk/expressoMail1_2/js/main.js
r5584 r5588 1290 1290 var aba = document.getElementById('content_id_'+currentTab); 1291 1291 var selected_messages = ""; 1292 jQuery(function() {1293 1292 jQuery("#"+aba.id+" tr").each(function(i, main_list) { 1294 1293 var check_box = main_list.firstChild.firstChild; … … 1298 1297 }); 1299 1298 1300 });1301 1299 if (selected_messages != ""){ 1302 1300 if(selected_messages.indexOf(',') == 0) … … 1312 1310 var aba = document.getElementById('content_id_'+currentTab); 1313 1311 var selected_messages = ""; 1314 jQuery(function() { 1315 jQuery("#"+aba.id+" tr").each(function(i, main_list) { 1316 var check_box = main_list.firstChild.firstChild; 1317 if(check_box && check_box.checked) { 1318 selected_messages += main_list.role + ',' ; 1319 }; 1320 }); 1321 1322 }); 1312 jQuery("#"+aba.id+" tr").each(function(i, main_list) { 1313 var check_box = main_list.firstChild.firstChild; 1314 if(check_box && check_box.checked) { 1315 selected_messages += main_list.role + ',' ; 1316 }; 1317 }); 1318 1323 1319 if (selected_messages != ""){ 1324 1320 if(selected_messages.indexOf(',') == 0) … … 3349 3345 3350 3346 function select_all_search_messages(select, aba){ 3351 jQuery(function() { 3352 if(select){ 3353 jQuery("#"+aba+" tr").each(function(i, o) { 3354 3355 o.firstChild.firstChild.checked = true; 3356 add_className(o, 'selected_msg'); 3357 }); 3358 }else{ 3359 jQuery("#"+aba+" tr").each(function(i, o) { 3360 3361 o.firstChild.firstChild.checked = false; 3362 remove_className(o, 'selected_msg'); 3363 }); 3364 } 3365 }); 3366 3367 3368 3347 3348 if(select){ 3349 jQuery("#"+aba+" tr").each(function(i, o) { 3350 3351 o.firstChild.firstChild.checked = true; 3352 add_className(o, 'selected_msg'); 3353 }); 3354 }else{ 3355 jQuery("#"+aba+" tr").each(function(i, o) { 3356 3357 o.firstChild.firstChild.checked = false; 3358 remove_className(o, 'selected_msg'); 3359 }); 3360 } 3369 3361 } 3370 3362 -
trunk/expressoMail1_2/js/search.js
r5587 r5588 493 493 chk_onclick = "changeBgColor(window.event,"+uid_msg+");"; 494 494 else 495 chk_onclick = "changeBgColor(event, "+uid_msg+");"; //'search_' + numBox495 chk_onclick = "changeBgColor(event,'"+uid_msg+"');"; //'search_' + numBox 496 496 var td1 = '<input type="checkbox" onclick="' + chk_onclick + '" id="' + border_id + '_check_box_message_'+uid_msg+'"></input>'; 497 497 -
trunk/prototype/modules/mail/js/followupflag.js
r5584 r5588 148 148 var folders = []; 149 149 var messages = []; 150 var roles = get_selected_messages_search_role().split(','); 150 151 for (var i=0; i < selectedMessageIds.length; i++ ){ 151 152 if (currentTab == 0) { 152 153 folder_name = current_folder; 154 var messageNumber = selectedMessageIds[i]; 153 155 }else{ 154 var id_border = currentTab.replace(/[a-zA-Z_]+/, "");155 var tr = Element(selectedMessageIds[i]+'_s'+id_border);156 folder_name = tr.getAttribute('name');157 }158 var messageNumber = selectedMessageIds[i];156 var tr = $('[role="'+roles[i]+'"]'); 157 folder_name = $(tr).attr('name'); 158 var id = $(tr).attr('id'); 159 var messageNumber = id.replace(/_[a-zA-Z0-9]+/,""); 160 } 159 161 folders.push(folder_name); 160 162 … … 241 243 if (selectedMessageIds.length == 0) $(this).button("option", "disabled", true); 242 244 243 for(i = 0; i < selectedMessageIds.length; i++){ 244 var folder_name; 245 if (currentTab == 0) { 246 folder_name = current_folder; 247 }else{ 248 var id_border = currentTab.replace(/[a-zA-Z_]+/, ""); 249 var tr = Element(selectedMessageIds[i]+'_s'+id_border); 250 folder_name = tr.getAttribute('name'); 251 } 252 var messageNumber = selectedMessageIds[i]; 245 var roles = get_selected_messages_search_role().split(','); 246 for (var i=0; i < selectedMessageIds.length; i++ ){ 247 if (currentTab == 0) { 248 folder_name = current_folder; 249 var messageNumber = selectedMessageIds[i]; 250 }else{ 251 var tr = $('[role="'+roles[i]+'"]'); 252 folder_name = $(tr).attr('name'); 253 var id = $(tr).attr('id'); 254 var messageNumber = id.replace(/_[a-zA-Z0-9]+/,""); 255 } 253 256 if(onceOpenedHeadersMessages[folder_name][messageNumber]['followupflagged']){ 254 257 if(onceOpenedHeadersMessages[folder_name][messageNumber]['followupflagged'].id){
Note: See TracChangeset
for help on using the changeset viewer.