Ignore:
Timestamp:
06/28/12 16:10:14 (12 years ago)
Author:
angelo
Message:

Ticket #2918 - Problema com o menu de opcoes da agenda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/helpers.js

    r6552 r6674  
    20592059        var meu_container = $(".calendars-list").html( html ); 
    20602060         
    2061         $('ul.list-calendars .cal-list-options-btn').each(function(){  
    2062             $(this).menu({    
    2063                 content: $(this).next().html(),  
    2064                 width: '120',  
    2065                 positionOpts: {  
    2066                     posX: 'left',   
    2067                     posY: 'bottom',  
    2068                     offsetX: 0,  
    2069                     offsetY: 0,  
    2070                     directionH: 'right',  
    2071                     directionV: 'down',   
    2072                     detectH: true, // do horizontal collision detection    
    2073                     detectV: true, // do vertical collision detection  
    2074                     linkToFront: false  
    2075                 },  
    2076                 flyOut: true,  
    2077                 showSpeed: 100,  
    2078                 crumbDefaultText: '>'  
    2079             });  
    2080         });          
     2061        var doMenu = function(){ 
     2062                $('ul.list-calendars .cal-list-options-btn').each(function(){  
     2063                        $(this).menu({    
     2064                        content: $(this).next().html(),  
     2065                        width: '120',  
     2066                        positionOpts: {  
     2067                                posX: 'left',   
     2068                                posY: 'bottom',  
     2069                                offsetX: 0,  
     2070                                offsetY: 0,  
     2071                                directionH: 'right',  
     2072                                directionV: 'down',   
     2073                                detectH: true, // do horizontal collision detection    
     2074                                detectV: true, // do vertical collision detection  
     2075                                linkToFront: false  
     2076                        },  
     2077                        flyOut: true,  
     2078                        showSpeed: 100,  
     2079                        crumbDefaultText: '>'  
     2080                        });  
     2081                }); 
     2082        } 
     2083        doMenu(); 
     2084        $('#divAppbox').on('scroll',function(){ 
     2085                if ($('.cal-list-options-btn.fg-menu-open.ui-state-active')){                    
     2086                        var offset = $('.cal-list-options-btn.fg-menu-open.ui-state-active').offset(); 
     2087                        if (offset) 
     2088                                $('.positionHelper').css('top',offset.top); 
     2089                } 
     2090        }); 
     2091        $('ul.list-calendars .cal-list-options-btn').on('click',function(){doMenu();});          
    20812092         
    20822093        meu_container.find(".button.new-calendar").button({ 
Note: See TracChangeset for help on using the changeset viewer.