Skip to content
Snippets Groups Projects
Commit e68006c0 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

Merge pull request #8157 from owncloud/share-expiration-smooth-hide

Expiration date is hidden smoothly
parents f6551d21 9e9c1093
Branches
No related tags found
No related merge requests found
......@@ -500,15 +500,16 @@ OC.Share={
$('#emailPrivateLink #email').hide();
$('#emailPrivateLink #emailButton').hide();
$('#allowPublicUploadWrapper').hide();
$('#expirationDate').hide();
},
dirname:function(path) {
return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, '');
},
showExpirationDate:function(date) {
$('#expirationCheckbox').attr('checked', true);
$('#expirationDate').before('<br />');
$('#expirationDate').val(date);
$('#expirationDate').show();
$('#expirationDate').show('blind');
$('#expirationDate').css('display','block');
$('#expirationDate').datepicker({
dateFormat : 'dd-mm-yy'
});
......@@ -578,7 +579,7 @@ $(document).ready(function() {
OC.Share.itemShares[shareType].splice(index, 1);
OC.Share.updateIcon(itemType, itemSource);
if (typeof OC.Share.statuses[itemSource] === 'undefined') {
$('#expiration').hide();
$('#expiration').hide('blind');
}
});
return false;
......@@ -638,7 +639,7 @@ $(document).ready(function() {
OC.Share.itemShares[OC.Share.SHARE_TYPE_LINK] = false;
OC.Share.updateIcon(itemType, itemSource);
if (typeof OC.Share.statuses[itemSource] === 'undefined') {
$('#expiration').hide();
$('#expiration').hide('blind');
}
});
}
......@@ -730,7 +731,7 @@ $(document).ready(function() {
if (!result || result.status !== 'success') {
OC.dialogs.alert(t('core', 'Error unsetting expiration date'), t('core', 'Error'));
}
$('#expirationDate').hide();
$('#expirationDate').hide('blind');
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment