Browse Source

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

Validate expire share days in settings (issue: #11930)
tags/v15.0.0beta1
John Molakvoæ 5 years ago
parent
commit
b449cb35f6
No account linked to committer's email address
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      settings/js/admin.js

+ 2
- 5
settings/js/admin.js 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() {

Loading…
Cancel
Save