diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 17:33:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 17:33:30 +0200 |
commit | cf532247e04a25fac776616a3a0ad5a5eebe8019 (patch) | |
tree | a6b6a49c300de6386bdd2324b6f87011273ad253 /settings/js | |
parent | b3a1aef93414ee1ec3a124f66a6964a27338b44c (diff) | |
parent | 15a0f8e4335307bf4b35305ccfe9ce200ddc8bbb (diff) | |
download | nextcloud-server-cf532247e04a25fac776616a3a0ad5a5eebe8019.tar.gz nextcloud-server-cf532247e04a25fac776616a3a0ad5a5eebe8019.zip |
Merge pull request #13949 from rullzer/no_negative_expire
Do not allow invalid default expire days
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/admin.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 8f705b9048d..3e17d7cc182 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -85,6 +85,13 @@ $(document).ready(function(){ }); }); + $('#shareapiExpireAfterNDays').change(function() { + var value = $(this).val(); + if (value <= 0) { + $(this).val("1"); + } + }); + $('#shareAPI input:not(#excludedGroups)').change(function() { var value = $(this).val(); if ($(this).attr('type') === 'checkbox') { |