summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-09 14:58:33 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-05-13 11:28:25 +0200
commitec045b251c5e42ce3762f3aefc0936581fd21030 (patch)
tree9705041ccab1c3ac01c122ca05d28d9efb79cdc2 /settings/js
parent9919ec48df83b2f9d5b5b71318ead553d0e7567a (diff)
downloadnextcloud-server-ec045b251c5e42ce3762f3aefc0936581fd21030.tar.gz
nextcloud-server-ec045b251c5e42ce3762f3aefc0936581fd21030.zip
hide input field if default expire date isn't activated
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index c04c0505deb..cd11e68442a 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -31,6 +31,14 @@ $(document).ready(function(){
OC.AppConfig.setValue('core', $(this).attr('name'), value);
});
+ $('#shareapiDefaultExpireDate').change(function() {
+ $("#setDefaultExpireDate").toggleClass('hidden', !this.checked);
+ });
+
+ $('#allowLinks').change(function() {
+ $("#publicLinkSettings").toggleClass('hidden', !this.checked);
+ });
+
$('#security').change(function(){
$.post(OC.filePath('settings','ajax','setsecurity.php'), { enforceHTTPS: $('#forcessl').val() },function(){} );
});