diff --git a/js/calendar.js b/js/calendar.js index 0f02e2631..926aa5d90 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -726,6 +726,7 @@ Calendar={ var newitem = '
  • ' + shareWith + (shareType === OC.Share.SHARE_TYPE_GROUP ? ' ('+t('core', 'group')+')' : '') @@ -741,7 +742,7 @@ Calendar={ } }); - $('.shareactions > input:checkbox').change(function() { + $('ul.sharedby').on('change', '.shareactions label > input:checkbox', function() { var container = $(this).parents('li').first(); var permissions = parseInt(container.data('permissions')); var itemType = container.data('item-type'); @@ -767,7 +768,7 @@ Calendar={ OC.Share.setPermissions(itemType, itemSource, shareType, shareWith, permissions); }); - $('.shareactions > .delete').click(function() { + $('ul.sharedby').on('click', '.shareactions > .delete', function(){ var container = $(this).parents('li').first(); var itemType = container.data('item-type'); var shareType = container.data('share-type');