diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-13 11:56:04 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-13 11:56:04 +0200 |
commit | b985021082e6605799665d084f5bce992daf09c9 (patch) | |
tree | 2e36214cf85e0b0c97eb7028f6d8bf5b36cfcbdc /core/js/share.js | |
parent | b8dc85b2f6bb0159e31f0046bc1f1fc11854d4bc (diff) | |
download | nextcloud-server-b985021082e6605799665d084f5bce992daf09c9.tar.gz nextcloud-server-b985021082e6605799665d084f5bce992daf09c9.zip |
hide default expire message if user sets expire date
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js index 2d9de62694b..963c11db79a 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -746,6 +746,9 @@ $(document).ready(function() { OC.dialogs.alert(t('core', 'Error unsetting expiration date'), t('core', 'Error')); } $('#expirationDate').hide('blind'); + if (oc_appconfig.core.defaultExpireDateEnforced === 'no') { + $('#defaultExpireMessage'). show('blind'); + } }); } }); @@ -768,6 +771,10 @@ $(document).ready(function() { expirationDateField.tipsy({gravity: 'n', fade: true}); expirationDateField.tipsy('show'); expirationDateField.addClass('error'); + } else { + if (oc_appconfig.core.defaultExpireDateEnforced === 'no') { + $('#defaultExpireMessage'). hide('blind'); + } } }); }); |