Skip to content
Snippets Groups Projects
Commit cf532247 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #13949 from rullzer/no_negative_expire

Do not allow invalid default expire days
parents b3a1aef9 15a0f8e4
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,13 @@ $(document).ready(function(){
});
});
$('#shareapiExpireAfterNDays').change(function() {
var value = $(this).val();
if (value <= 0) {
$(this).val("1");
}
});
$('#shareAPI input:not(#excludedGroups)').change(function() {
var value = $(this).val();
if ($(this).attr('type') === 'checkbox') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment