summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-03 10:52:27 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-03 10:52:27 +0200
commit79e54994f9c7cb43f1a89cd9d95f053eff7df1f7 (patch)
tree0715d2ad0bbaefaf1e6f8a79bb19abecf2e96051
parente9f616b0a03e830ae3ec723a8eff511220810eca (diff)
downloadnextcloud-server-79e54994f9c7cb43f1a89cd9d95f053eff7df1f7.tar.gz
nextcloud-server-79e54994f9c7cb43f1a89cd9d95f053eff7df1f7.zip
only show message if default expire date is enforced
-rw-r--r--core/js/share.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 62271a43ceb..9af86c7e196 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -342,12 +342,8 @@ OC.Share={
html += '<br />';
var defaultExpireMessage = '';
- if ((itemType === 'folder' || itemType === 'file') && oc_appconfig.core.defaultExpireDateEnabled) {
- if (oc_appconfig.core.defaultExpireDateEnforced) {
- defaultExpireMessage = t('core', 'The public link will expire no later than {days} days after it is created', {'days': escapeHTML(oc_appconfig.core.defaultExpireDate)}) + '<br/>';
- } else {
- defaultExpireMessage = t('core', 'By default the public link will expire after {days} days', {'days': escapeHTML(oc_appconfig.core.defaultExpireDate)}) + '<br/>';
- }
+ if ((itemType === 'folder' || itemType === 'file') && oc_appconfig.core.defaultExpireDateEnforced) {
+ defaultExpireMessage = t('core', 'The public link will expire no later than {days} days after it is created', {'days': escapeHTML(oc_appconfig.core.defaultExpireDate)}) + '<br/>';
}
html += '<input id="linkText" type="text" readonly="readonly" />';