summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-01-23 11:18:23 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-01-24 10:46:08 +0100
commit77de47858b6f53bfa36b84de5e316e6e804ad7ca (patch)
tree37600e097c1dfd3240aad1dcda8a09edbb8fba04 /core/js/share.js
parent0daabe5b6a2f96e8b754c2414bb83d00277a307a (diff)
downloadnextcloud-server-77de47858b6f53bfa36b84de5e316e6e804ad7ca.tar.gz
nextcloud-server-77de47858b6f53bfa36b84de5e316e6e804ad7ca.zip
add expire date to link share if possible
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 3637d2e7e72..0939259b7da 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -733,12 +733,16 @@ $(document).ready(function() {
var itemSource = $('#dropdown').data('item-source');
var file = $('tr').filterAttr('data-id', String(itemSource)).data('file');
var email = $('#email').val();
+ var expirationDate = '';
+ if ( $('#expirationCheckbox').is(':checked') === true ) {
+ expirationDate = $( "#expirationDate" ).val();
+ }
if (email != '') {
$('#email').prop('disabled', true);
$('#email').val(t('core', 'Sending ...'));
$('#emailButton').prop('disabled', true);
- $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'email', toaddress: email, link: link, itemType: itemType, itemSource: itemSource, file: file},
+ $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'email', toaddress: email, link: link, itemType: itemType, itemSource: itemSource, file: file, expiration: expirationDate},
function(result) {
$('#email').prop('disabled', false);
$('#emailButton').prop('disabled', false);