Merge pull request #12125 from MasterOfDeath/expire-share-days-validate

Validate expire share days in settings (issue: #11930)
This commit is contained in:
John Molakvoæ 2018-10-31 08:46:37 +01:00 committed by GitHub
commit b449cb35f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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() {