Changeset 6412 for trunk/prototype/modules/calendar
- Timestamp:
- 06/04/12 16:56:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/helpers.js
r6393 r6412 371 371 close: function(event, ui) { 372 372 /** 373 374 373 * Remove tooltip possivelmente existente 374 */ 375 375 if ($('dd.attendee-list li:last').data('qtip')) 376 376 $('dd.attendee-list li:last').qtip('destroy'); … … 392 392 canDiscardEventDialog = true; 393 393 /** 394 *Remoção dos anexos do eventos caso seja cancelado a edição 395 */ 396 var ids = []; 394 *Remoção dos anexos do eventos caso seja cancelado a edição 395 */ 396 DataLayer.rollback(); 397 398 var ids = false; 397 399 $.each($('.attachment-list input'), function (i, input) { 398 ids.push(input.value); 400 DataLayer.put('attachment', {id: ''+input.value}); 401 DataLayer.remove('attachment', ''+input.value); 402 ids = true; 399 403 }); 400 if(ids.length > 0) 401 DataLayer.remove('attachment', { 402 filter: ['IN', 'id', ids] 403 }); 404 405 DataLayer.rollback(); 404 if(ids) 405 DataLayer.commit(); 406 407 406 408 407 409 UI.dialogs.addEvent.dialog('close'); … … 427 429 428 430 } 431 //DataLayer.rollback(); 429 432 return canDiscardEventDialog; 430 433 } … … 784 787 785 788 .children(".cancel").click(function(){ 786 DataLayer.rollback('participant');787 789 UI.dialogs.addEvent.dialog("close"); 788 790 }).end()
Note: See TracChangeset
for help on using the changeset viewer.