Changeset 6754 for branches/2.4/expressoMail1_2/js/shortcut.js
- Timestamp:
- 07/11/12 11:45:10 (12 years ago)
- Location:
- branches/2.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk merged eligible /sandbox/2.4.1-3 6237-6527
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/2.4/expressoMail1_2/js/shortcut.js
r6727 r6754 327 327 shortcut.add('up', function(e) 328 328 { 329 329 330 var search_in_focus = false; 330 331 var search_win = document.getElementById( 'window_QuickCatalogSearch' ); … … 334 335 if ( !search_in_focus && currentTab == 0 ) 335 336 select_msg('null', 'up'); 336 // Ao usuario pressionar o 'up' em uma outra aba, não pode ser removido o 'up'. 337 else{} 338 // shortcut.remove('up');337 // Ao usuario pressionar o 'up' em uma outra aba, não pode ser removido o 'up'. 338 else{} 339 // shortcut.remove('up'); 339 340 e.stopPropagation(); 340 341 e.preventDefault(); … … 351 352 if ( !search_in_focus && currentTab == 0 ) 352 353 select_msg('null', 'down'); 353 // Ao usuario pressionar o 'down' em uma outra aba, não pode ser removido o 'down'.354 else{} 354 // Ao usuario pressionar o 'down' em uma outra aba, não pode ser removido o 'down'. 355 else{} 355 356 // shortcut.remove('down'); 356 357 e.stopPropagation(); … … 519 520 520 521 if (msg_number != 'null') { 521 522 522 523 if(Element(msg_number)){ 523 524 unselect_all_msgs(); 524 525 add_className(Element(msg_number), 'selected_shortcut_msg'); 525 526 } 526 527 } else{527 528 } else { 528 529 var scrollMain = Element('divScrollMain_0'); 529 530 var selection_size = parseInt(preferences.line_height) + 10; 530 if( keyboard_action == 'down') { 531 532 if(!Element("chk_box_select_all_messages").checked){ 533 534 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 535 536 if($(this).hasClass("selected_shortcut_msg") && $(this).next().length){ 537 $(this).next().addClass("selected_shortcut_msg"); 538 $(this).removeClass("selected_shortcut_msg"); 539 return false; 540 } 541 542 }); 543 544 } else { 545 546 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 547 548 if($(this).hasClass("current_selected") && $(this).next().length){ 549 $(this).removeClass("current_selected"); 550 $(this).removeClass("selected_shortcut_msg"); 551 $(this).next().addClass("current_selected"); 552 $(this).next().addClass("selected_shortcut_msg"); 553 return false; 554 } 555 556 }); 557 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 558 if(!$(this).hasClass("current_selected")) 559 $(this).removeClass("selected_shortcut_msg"); 560 }); 531 532 if( keyboard_action == 'down') { 533 534 if(!Element("chk_box_select_all_messages").checked){ 535 536 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 537 538 if($(this).hasClass("selected_shortcut_msg") && $(this).next().length){ 539 $(this).next().addClass("selected_shortcut_msg"); 540 $(this).removeClass("selected_shortcut_msg"); 541 return false; 542 } 543 544 }); 545 546 } else { 547 548 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 549 550 if($(this).hasClass("current_selected") && $(this).next().length){ 551 $(this).removeClass("current_selected"); 552 $(this).removeClass("selected_shortcut_msg"); 553 $(this).next().addClass("current_selected"); 554 $(this).next().addClass("selected_shortcut_msg"); 555 return false; 556 } 557 558 }); 559 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 560 if(!$(this).hasClass("current_selected")) 561 $(this).removeClass("selected_shortcut_msg"); 562 }); 561 563 } 562 564 563 } else if( keyboard_action == 'up') { 564 565 if(!Element("chk_box_select_all_messages").checked){ 566 567 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 568 569 if($(this).hasClass("selected_shortcut_msg") && $(this).prev().length){ 570 $(this).prev().addClass("selected_shortcut_msg"); 571 $(this).removeClass("selected_shortcut_msg"); 572 return false; 573 } 574 575 }); 576 577 } else { 578 579 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 580 581 if($(this).hasClass("current_selected") && $(this).prev().length){ 582 $(this).removeClass("current_selected"); 583 $(this).removeClass("selected_shortcut_msg"); 584 $(this).prev().addClass("current_selected"); 585 $(this).prev().addClass("selected_shortcut_msg"); 586 return false; 587 } 588 589 }); 590 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 591 if(!$(this).hasClass("current_selected")) 592 $(this).removeClass("selected_shortcut_msg"); 593 594 }565 } else if( keyboard_action == 'up') { 566 567 if(!Element("chk_box_select_all_messages").checked){ 568 569 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 570 571 if($(this).hasClass("selected_shortcut_msg") && $(this).prev().length){ 572 $(this).prev().addClass("selected_shortcut_msg"); 573 $(this).removeClass("selected_shortcut_msg"); 574 return false; 575 } 576 577 }); 578 579 } else { 580 581 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 582 583 if($(this).hasClass("current_selected") && $(this).prev().length){ 584 $(this).removeClass("current_selected"); 585 $(this).removeClass("selected_shortcut_msg"); 586 $(this).prev().addClass("current_selected"); 587 $(this).prev().addClass("selected_shortcut_msg"); 588 return false; 589 } 590 591 }); 592 $("#divScrollMain_0").find("#tbody_box").find("tr").each(function(){ 593 if(!$(this).hasClass("current_selected")) 594 $(this).removeClass("selected_shortcut_msg"); 595 }); 596 595 597 } 598 599 } 596 600 return true; 597 601 }
Note: See TracChangeset
for help on using the changeset viewer.