Ignore:
Timestamp:
02/28/13 18:05:55 (11 years ago)
Author:
cristiano
Message:

Ticket #3363 - Manter preferencia do checkbox de visualizacao das agendas no ExpressoCalendar?

File:
1 edited

Legend:

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

    r7857 r7928  
    21022102                 
    21032103        }); 
    2104          
    2105         $('ul.list-calendars .cal-list-options-btn').on('click',function(){doMenu();});          
     2104 
     2105     $('ul.list-calendars .cal-list-options-btn').on('click',function(){doMenu();}); 
    21062106         
    21072107 
     
    22762276    }); 
    22772277                 
    2278                  
    2279     //TODO Implementar ocultar agendas. 
     2278 
    22802279    meu_container.find('.title-signed-calendars').click(function(evt){ 
    22812280        var status = $(this).parent().find('.status-list-shared'); 
     
    22952294            var checkBox = $(this); 
    22962295            if(!!Calendar.currentView[ checkBox.val() ]){ 
     2296 
     2297        $.each(Calendar.signatures , function(index, value) { 
     2298 
     2299            if(value.calendar.id == checkBox.val()) 
     2300            { 
     2301                value.hidden = checkBox.is(':checked') ? 0 : 1  ; 
     2302 
     2303                DataLayer.put('calendarSignature', {id: ''+value.id , hidden: value.hidden }  ); 
     2304                DataLayer.commit(); 
     2305            } 
     2306 
     2307        }); 
     2308 
    22972309                Calendar.currentView[ checkBox.val() ].hidden = !checkBox.is(':checked'); 
    22982310                $('#calendar').fullCalendar( 'refetchEvents' ); 
Note: See TracChangeset for help on using the changeset viewer.