Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Fixes #498 #499

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ Calendar={
var newitem = '<li data-item-type="event"'
+ 'data-share-with="'+shareWith+'" '
+ 'data-permissions="'+permissions+'" '
+ 'data-item="'+itemSource+'" '
+ 'data-share-type="'+shareType+'">'
+ shareWith
+ (shareType === OC.Share.SHARE_TYPE_GROUP ? ' ('+t('core', 'group')+')' : '')
Expand All @@ -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');
Expand All @@ -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');
Expand Down