aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js7
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') {