Changeset 6685
- Timestamp:
- 06/29/12 15:05:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/prototype/modules/calendar/js/helpers.js
r6606 r6685 2059 2059 var meu_container = $(".calendars-list").html( html ); 2060 2060 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 }); 2081 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();}); 2092 2082 2093 meu_container.find(".button.new-calendar").button({ 2083 2094 icons: {
Note: See TracChangeset
for help on using the changeset viewer.