add/remove internal sharewith JS animations

master
Michał 'rysiek' Woźniak 2014-01-25 03:20:11 +01:00
parent 286a5cb263
commit 0d7cf1e7b3
1 changed files with 2 additions and 3 deletions

View File

@ -622,7 +622,6 @@ Calendar={
// shouldn't it be OC.PERMISSION_READ | OC.PERMISSION_SHARE instead, as a sensible default?
var permissions = $(this).data('permissions')
OC.Share.share(itemType, itemSource, shareType, shareWith, permissions, function(data) {
console.log('PERMISSIONS: ' + permissions)
// we need to "fix" the share-can-edit-ITEMPTYPE-ITEMSOURCE-0 checkbox and label
var editCheckboxIdStub = 'share-can-edit-' + itemType + '-' + itemSource + '-'
var curEditCheckboxId = $(shareWithInput).parents('.share-interface-container.internal-share').find('.shared-with-entry-container').length
@ -671,7 +670,7 @@ Calendar={
$(shareWithInput)
.parents('.share-interface-container.internal-share')
.children('.shared-with-list')
.append(newitem)
.append(newitem.fadeIn(500))
// clear
$(shareWithInput).val('');
});
@ -718,7 +717,7 @@ Calendar={
var itemSource = container.data('item');
var shareWith = container.data('share-with');
OC.Share.unshare(itemType, itemSource, shareType, shareWith, function() {
container.remove();
container.fadeOut(500, function(){ $(this).remove() });
});
});
}