Ignore:
Timestamp:
05/31/12 11:06:40 (12 years ago)
Author:
acoutinho
Message:

Ticket #2818 - Inconsistência na remoção de eventos na listagem de eventos

File:
1 edited

Legend:

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

    r6346 r6359  
    19131913            if(clicked == 'Sim'){ 
    19141914 
    1915                 var schedulable = DataLayer.get('schedulable', '88'); 
    1916                  
    1917                 schedulable.calendar = idCalendar; 
    1918                  
     1915                var schedulable = DataLayer.get('schedulable', ''+eventId); 
     1916                schedulable.calendar = ''+idCalendar; 
    19191917                var schudableDecode = DataLayer.encode( "schedulable:preview", schedulable); 
    19201918                var me = schudableDecode.me.user ? schudableDecode.me.user.id : schudableDecode.me.id; 
     
    24862484                .find('.button.delete').click(function(){ 
    24872485                    var eventId = $(this).siblings('[name="eventid"]').val(); 
    2488                     $.Zebra_Dialog('Tem certeza que deseja excluir o evento?', { 
    2489                         'type':     'question', 
    2490                         'overlay_opacity': '0.5', 
    2491                         'buttons':  ['Sim', 'Não'], 
    2492                         'onClose':  function(clicked) { 
    2493                             if(clicked == 'Sim'){ 
    2494                                 DataLayer.remove('schedulable', eventId); 
    2495                             } 
    2496                         } 
    2497                     }); 
     2486                    var calendarId = $(this).siblings('[name="calendarid"]').val(); 
     2487 
     2488                    remove_event(eventId, calendarId); 
    24982489                }) 
    24992490                .end().find('.button.edit').click(function(){                            
Note: See TracChangeset for help on using the changeset viewer.