Changeset 5376 for trunk/prototype/modules/calendar/js/helpers.js
- Timestamp:
- 01/13/12 09:10:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/helpers.js
r5364 r5376 267 267 }); 268 268 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); 270 273 if( $(this).parent().remove().find('li').is(':empty') ) { 271 274 //alert('nao tem'); … … 303 306 var li_attach = DataLayer.render('templates/alarms_add_itemlist.ejs', {alarm:calendarSelected}); 304 307 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); 305 311 if( $(this).parent().remove().find('li').is(':empty') ) { 306 312 //alert('nao tem'); … … 608 614 if (user){ 609 615 if (!skipAddNewLine) { 616 user[0].id = DataLayer.put('participant', {user: user[0].id, isExternal: 1}); 610 617 blkAddAtendee.find('dd.attendee-list ul.attendee-list').append( 611 618 DataLayer.render('templates/participants_add_itemlist.ejs', user) … … 860 867 861 868 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 ){ 863 870 jQuery('.preferences-alarms-list').append(template) 864 871 .find('li:last label:eq(0)').remove().end()
Note: See TracChangeset
for help on using the changeset viewer.