From 44049a718e60f86f5f08e7d505f64507e778988e Mon Sep 17 00:00:00 2001 From: raimund-schluessler Date: Sun, 27 Jul 2014 18:16:26 +0200 Subject: [PATCH] Fixes #498 --- js/calendar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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');