Ignore:
Timestamp:
01/15/13 10:52:32 (11 years ago)
Author:
gustavo
Message:

Ticket #3293 - Problemas com scroll na listagem de pastas do expressoMail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/js/foldertree.js

    r7745 r7751  
    238238        search_emails("UNDELETED KEYWORD \"$Followupflagged\""); 
    239239    }).end().end(); 
    240      
     240 
     241    $('.upper').droppable({ 
     242        over: function(event, ui){ 
     243            $('#content_folders').autoscroll({ 
     244                direction: 'up', 
     245                step: 150, 
     246                scroll: true 
     247            }); 
     248        }, 
     249        out: function(event, ui){ 
     250            $('#content_folders').autoscroll('destroy'); 
     251        } 
     252    }); 
     253 
     254    $('.lower').droppable({ 
     255        over: function(event, ui){ 
     256            $('#content_folders').autoscroll({ 
     257                direction: 'down', 
     258                step: 150, 
     259                scroll: true 
     260            }); 
     261        }, 
     262        out: function(event, ui){ 
     263            $('#content_folders').autoscroll('destroy'); 
     264        } 
     265    }); 
     266 
     267 
     268 
    241269    folders_html.find('[id="'+selected+'"]').children().addClass("selected"); 
    242270    $(".folder").not(".head_folder").not(".shared-folders").not(".shared-folders + ul .folder").parent().find(".folder").not(".head_folder,.inbox,.drafts,.sent,.spam,.trash").draggable({ 
     
    244272        start : function(){ 
    245273            $(this).css("color", "gray"); 
     274            $('.upper, .lower').show(); 
     275            $(".lower").css("top", ($("#content_folders").height()-18) + $("#content_folders").offset().top); 
    246276        }, 
    247277        stop : function(){ 
    248278            $(this).css("color", ""); 
     279            $('.upper, .lower').hide(); 
    249280        }, 
    250281        revert: "invalid", 
     
    275306                                over.prev().trigger("click"); 
    276307                            } 
    277                         }, 1000); 
     308                        }, 500); 
    278309                         
    279310                    } 
    280311            //FIM : SE A PASTA CONTER FILHAS EXPANDE            
    281             $("#content_folders").stop().scrollTo($(this), {axis:'y', margin:true, offset:-50, duration:400});       
     312            //$("#content_folders").stop().scrollTo($(this), {axis:'y', margin:true, offset:-50, duration:400});       
    282313            //SETA BORDA EM VOLTA DA PASTA 
    283314            // 
Note: See TracChangeset for help on using the changeset viewer.