summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogexpirationview.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-09-03 15:53:17 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:27 +0200
commitce1b0c650e3a0e4cb701609ee08a13182909219a (patch)
tree917a0b27ab41898fbc37861909489824f49f3392 /core/js/sharedialogexpirationview.js
parent5dc2c35ce5f3023ccea4cc599cf54d6b1c0e2c01 (diff)
downloadnextcloud-server-ce1b0c650e3a0e4cb701609ee08a13182909219a.tar.gz
nextcloud-server-ce1b0c650e3a0e4cb701609ee08a13182909219a.zip
show link share
Diffstat (limited to 'core/js/sharedialogexpirationview.js')
-rw-r--r--core/js/sharedialogexpirationview.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/js/sharedialogexpirationview.js b/core/js/sharedialogexpirationview.js
index 4c628f5498a..9fb404a090e 100644
--- a/core/js/sharedialogexpirationview.js
+++ b/core/js/sharedialogexpirationview.js
@@ -14,11 +14,14 @@
}
var TEMPLATE =
+ // well that could go to linkShareView…
+ '{{#if isLinkShare}}' +
'<input type="checkbox" name="expirationCheckbox" id="expirationCheckbox" value="1" />' +
'<label for="expirationCheckbox">{{setExpirationLabel}}</label>' +
'<label for="expirationDate" class="hidden-visually">{{expirationLabel}}</label>' +
'<input id="expirationDate" type="text" placeholder="{{expirationDatePlaceholder}}" class="hidden" />' +
- '<em id="defaultExpireMessage">{{defaultExpireMessage}}</em>'
+ '<em id="defaultExpireMessage">{{defaultExpireMessage}}</em>' +
+ '{{/if}}'
;
/**
@@ -44,6 +47,8 @@
/** @type {boolean} **/
showLink: true,
+ className: 'hidden',
+
initialize: function(options) {
if(!_.isUndefined(options.configModel)) {
this.configModel = options.configModel;
@@ -68,7 +73,8 @@
setExpirationLabel: t('core', 'Set expiration date'),
expirationLabel: t('core', 'Expiration'),
expirationDatePlaceholder: t('core', 'Expiration date'),
- defaultExpireMessage: defaultExpireMessage
+ defaultExpireMessage: defaultExpireMessage,
+ isLinkShare: this.model.get('linkShare').isLinkShare
}));
return this;