summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRinat Gumirov <rinat.gumirov@mail.ru>2018-10-29 23:34:41 +0500
committerRinat Gumirov <rinat.gumirov@mail.ru>2018-10-31 00:15:41 +0500
commit5aca24f3bd1df62c0ed07051db729f6cd67c3ad5 (patch)
tree3a97f42f47bc00f61aeecaf692f9a4a894608573 /settings
parent6ad7f329385f73a731f69d9f00cf5b038f3eac04 (diff)
downloadnextcloud-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.js7
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() {