Ignore:
Timestamp:
04/09/12 17:55:40 (12 years ago)
Author:
acoutinho
Message:

Ticket #2602 - Inconsistencia com importacao de eventos no expressoCalendar

File:
1 edited

Legend:

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

    r5835 r5901  
    267267Calendar.load(); 
    268268 
    269 /* Todo será implementado funcionalidades ajax no calback de importacao de eventos */ 
    270 isValidCalback = false; 
    271  
    272269/*Todo Melhorias serão feitas na API*/ 
    273270//DataLayer.poll( "schedulable" ); 
     
    285282                }); 
    286283    } 
    287 }); 
    288  
    289 DataLayer.listen( "calendarToSchedulable", function( status, updateData){ 
    290    
    291     if( status === 'client' ){ 
    292                 if(updateData && isValidCalback){ 
    293                         isValidCalback = false; 
    294                         $.Zebra_Dialog('Evento(s) importados com sucesso!', { 
    295                                 'overlay_opacity': '0.5', 
    296                                 'onClose':  function(clicked) {                          
    297                                         Calendar.rerenderView(); 
    298                                 } 
    299                         }); 
    300                 }else if(updateData == false){ 
    301                         $.Zebra_Dialog('Erro ao importar evento(s)!', { 
    302                                 'overlay_opacity': '0.5'         
    303                         }); 
    304                 } 
    305     };   
    306284}); 
    307285 
Note: See TracChangeset for help on using the changeset viewer.