summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-10 21:54:25 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-10 21:54:25 +0200
commit9e9c109390c265cdb63b5788365ce74034009a6c (patch)
treea8239daf8b4363120203d2fb660a814b86879657 /core
parent2fc6fb36adfb8213b384fb23dc95d42087b1df40 (diff)
downloadnextcloud-server-9e9c109390c265cdb63b5788365ce74034009a6c.tar.gz
nextcloud-server-9e9c109390c265cdb63b5788365ce74034009a6c.zip
Expiration date is hidden smoothly
From now on, it is hidden smoothly as the other fields do.
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/js/share.js b/core/js/share.js
index ef71cc7999a..19d71a6cbd5 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -480,15 +480,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'
});
@@ -558,7 +559,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;
@@ -618,7 +619,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');
}
});
}
@@ -710,7 +711,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');
});
}
});