Skip to content
Snippets Groups Projects
Unverified Commit b449cb35 authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

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

Validate expire share days in settings (issue: #11930)
parents bbdfead9 5aca24f3
No related branches found
No related tags found
No related merge requests found
...@@ -66,11 +66,8 @@ $(document).ready(function(){ ...@@ -66,11 +66,8 @@ $(document).ready(function(){
}); });
}); });
$('#shareapiExpireAfterNDays').change(function() { $('#shareapiExpireAfterNDays').on('input', function() {
var value = $(this).val(); this.value = this.value.replace(/\D/g, '');
if (value <= 0) {
$(this).val("1");
}
}); });
$('#shareAPI input:not(.noJSAutoUpdate)').change(function() { $('#shareAPI input:not(.noJSAutoUpdate)').change(function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment