Changeset 7997
- Timestamp:
- 03/11/13 23:49:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/helpers.js
r7996 r7997 259 259 text: false 260 260 }).click(function () { 261 DataLayer.remove('participant', $(this).parents('li').find('[type=checkbox]').val()); 261 var participant = DataLayer.get('participant' , $(this).parents('li').find('[type=checkbox]').val()); 262 DataLayer.remove('participant', participant.id); 263 262 264 if($(this).parent().find('.button.delegate').hasClass('attendee-permissions-change-button')){ 263 265 removeOthers(); … … 272 274 if(blkAddAtendee.find(".attendee-list li").length == 1) 273 275 blkAddAtendee.find("li.not-attendee").removeClass('hidden'); 276 delete attendees[participant.user]; 274 277 }) 275 278 .addClass('tiny disable ui-button-disabled ui-state-disabled') … … 1612 1615 DataLayer.render( 'templates/preferences_calendar.ejs', { 1613 1616 preferences:User.preferences, 1614 calendars: Calendar.calendars 1617 calendars: Calendar.calendars, 1618 signatureOf : Calendar.signatureOf 1615 1619 }, function( template ){ 1616 1620 var tabPrefCalendar = jQuery('#preference_tab').html( template ).find('.preferences-win'); 1617 1621 1618 tabPrefCalendar.find('option[value="'+User.preferences.defaultCalendar+'"]').attr('selected','selected').trigger('change'); 1619 1622 tabPrefCalendar.find('select[name="defaultCalendar"] option[value="'+User.preferences.defaultCalendar+'"]').attr('selected','selected').trigger('change'); 1623 tabPrefCalendar.find('select[name="dafaultImportCalendar"] option[value="'+User.preferences.dafaultImportCalendar+'"]').attr('selected','selected').trigger('change'); 1624 1620 1625 DataLayer.render( 'templates/timezone_list.ejs', {}, function( timezones_options ){ 1621 1626 tabPrefCalendar.find('select[name="timezone"]').html(timezones_options).find('option[value="'+User.preferences.timezone+'"]').attr('selected','selected').trigger('change');
Note: See TracChangeset
for help on using the changeset viewer.