summaryrefslogtreecommitdiffstats
path: root/apps/calendar/js/calendar.js
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-02-17 21:19:04 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-02-17 21:19:04 +0100
commit011bc1e764df276343fd91f9b7d6ab26c498858a (patch)
tree8a3317b0d29cb85dd1b0092d3ad0ff71da01ae15 /apps/calendar/js/calendar.js
parenta3b8d54576e67ce105dbbd87ac7e9843921bafaa (diff)
downloadnextcloud-server-011bc1e764df276343fd91f9b7d6ab26c498858a.tar.gz
nextcloud-server-011bc1e764df276343fd91f9b7d6ab26c498858a.zip
fix unsharing of groups
Diffstat (limited to 'apps/calendar/js/calendar.js')
-rw-r--r--apps/calendar/js/calendar.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js
index 6799a12985a..1c14a321abd 100644
--- a/apps/calendar/js/calendar.js
+++ b/apps/calendar/js/calendar.js
@@ -537,13 +537,13 @@ Calendar={
$('#share_user').live('change', function(){
if($('#sharewithuser_' + $('#share_user option:selected').text()).length == 0){
Calendar.UI.Share.share(Calendar.UI.Share.currentid, Calendar.UI.Share.idtype, $('#share_user option:selected').text(), 'user');
- var newitem = '<li id="sharewithuser_' + $('#share_user option:selected').text() +'"><input type="checkbox" width="12px" style="visibility:hidden;" title="' + $('#share_user option:selected').text() + '">' + $('#share_user option:selected').text() + ' <img src="/owncloud/core/img/actions/delete.svg" class="svg action" style="display:none;float:right;"></li>';
+ var newitem = '<li id="sharewithuser_' + $('#share_user option:selected').text() +'"><input type="checkbox" width="12px" style="visibility:hidden;" title="' + $('#share_user option:selected').text() + '">' + $('#share_user option:selected').text() + '<img src="/owncloud/core/img/actions/delete.svg" class="svg action" style="display:none;float:right;"></li>';
$('#sharewithuser_list').append(newitem);
$('#sharewithuser_' + $('#share_user option:selected').text() + ' > img').click(function(){
$('#share_user option[value="' + $(this).parent().text() + '"]').removeAttr('disabled');
Calendar.UI.Share.unshare(Calendar.UI.Share.currentid, Calendar.UI.Share.idtype, $(this).parent().text(), 'user' );
- $(this).parent().remove();
$("#share_user").trigger("liszt:updated");
+ $(this).parent().remove();
});
$('#share_user option:selected').attr('disabled', 'disabled');
$("#share_user").trigger("liszt:updated");
@@ -552,13 +552,13 @@ Calendar={
$('#share_group').live('change', function(){
if($('#sharewithgroup_' + $('#share_group option:selected').text()).length == 0){
Calendar.UI.Share.share(Calendar.UI.Share.currentid, Calendar.UI.Share.idtype, $('#share_group option:selected').text(), 'group');
- var newitem = '<li id="sharewithgroup_' + $('#share_group option:selected').text() +'"><input type="checkbox" width="12px" style="visibility:hidden;" title="' + $('#share_group option:selected').text() + '">' + $('#share_group option:selected').text() + ' <img src="/owncloud/core/img/actions/delete.svg" class="svg action" style="display:none;float:right;"></li>';
+ var newitem = '<li id="sharewithgroup_' + $('#share_group option:selected').text() +'"><input type="checkbox" width="12px" style="visibility:hidden;" title="' + $('#share_group option:selected').text() + '">' + $('#share_group option:selected').text() + '<img src="/owncloud/core/img/actions/delete.svg" class="svg action" style="display:none;float:right;"></li>';
$('#sharewithgroup_list').append(newitem);
$('#sharewithgroup_' + $('#share_group option:selected').text() + ' > img').click(function(){
$('#share_group option[value="' + $(this).parent().text() + '"]').removeAttr('disabled');
Calendar.UI.Share.unshare(Calendar.UI.Share.currentid, Calendar.UI.Share.idtype, $(this).parent().text(), 'group');
- $(this).parent().remove();
$("#share_group").trigger("liszt:updated");
+ $(this).parent().remove();
});
$('#share_group option:selected').attr('disabled', 'disabled');
$("#share_group").trigger("liszt:updated");