Ignore:
Timestamp:
01/13/12 09:10:28 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Estabilizacao da nova api, correcoes de bug e melhorias na nova agenda

File:
1 edited

Legend:

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

    r5364 r5376  
    267267            }); 
    268268                 
    269                 UI.dialogs.addEvent.find('.button.remove').button({text:false, icons:{primary:'ui-icon-close'}}).click(function(el) { 
     269                UI.dialogs.addEvent.find('.button.remove').button({text:false, icons:{primary:'ui-icon-close'}}).click(function(el){ 
     270                        var id; 
     271                        if( id = $(this).parent().find('input[name="alarmId[]"]').val()) 
     272                                DataLayer.remove('alarm', id); 
    270273                        if( $(this).parent().remove().find('li').is(':empty') ) { 
    271274                                //alert('nao tem'); 
     
    303306                                        var li_attach = DataLayer.render('templates/alarms_add_itemlist.ejs', {alarm:calendarSelected}); 
    304307                                                jQuery('.event-alarms-list').append(li_attach).find('.button.remove').button({text:false, icons:{primary:'ui-icon-close'}}).click(function(el) { 
     308                                                        var id; 
     309                                                        if( id = $(this).parent().find('input[name="alarmId[]"]').val()) 
     310                                                                DataLayer.remove('alarm', id); 
    305311                                                        if( $(this).parent().remove().find('li').is(':empty') ) { 
    306312                                                                //alert('nao tem'); 
     
    608614                                        if (user){ 
    609615                                                if (!skipAddNewLine) { 
     616                                                        user[0].id =  DataLayer.put('participant', {user: user[0].id, isExternal: 1}); 
    610617                                                        blkAddAtendee.find('dd.attendee-list ul.attendee-list').append( 
    611618                                                                DataLayer.render('templates/participants_add_itemlist.ejs', user) 
     
    860867 
    861868                                form_content.find('.button-add-alarms').click(function(){ 
    862                                         DataLayer.render( 'templates/alarms_add_itemlist.ejs', {}, function( template ){ 
     869                                        DataLayer.render( 'templates/alarms_add_itemlist.ejs', {}, function( template ){                                                 
    863870                                                jQuery('.preferences-alarms-list').append(template) 
    864871                                                .find('li:last label:eq(0)').remove().end() 
Note: See TracChangeset for help on using the changeset viewer.