diff options
author | Rinat Gumirov <rinat.gumirov@mail.ru> | 2018-10-29 23:34:41 +0500 |
---|---|---|
committer | Rinat Gumirov <rinat.gumirov@mail.ru> | 2018-10-31 00:15:41 +0500 |
commit | 5aca24f3bd1df62c0ed07051db729f6cd67c3ad5 (patch) | |
tree | 3a97f42f47bc00f61aeecaf692f9a4a894608573 /settings | |
parent | 6ad7f329385f73a731f69d9f00cf5b038f3eac04 (diff) | |
download | nextcloud-server-5aca24f3bd1df62c0ed07051db729f6cd67c3ad5.tar.gz nextcloud-server-5aca24f3bd1df62c0ed07051db729f6cd67c3ad5.zip |
expire share days in settings validate
Signed-off-by: Rinat Gumirov <rinat.gumirov@mail.ru>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/admin.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 35f3d949ab6..56bbaead520 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -66,11 +66,8 @@ $(document).ready(function(){ }); }); - $('#shareapiExpireAfterNDays').change(function() { - var value = $(this).val(); - if (value <= 0) { - $(this).val("1"); - } + $('#shareapiExpireAfterNDays').on('input', function() { + this.value = this.value.replace(/\D/g, ''); }); $('#shareAPI input:not(.noJSAutoUpdate)').change(function() { |