Merge pull request #13949 from rullzer/no_negative_expire
Do not allow invalid default expire days
This commit is contained in:
commit
cf532247e0
|
@ -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() {
|
$('#shareAPI input:not(#excludedGroups)').change(function() {
|
||||||
var value = $(this).val();
|
var value = $(this).val();
|
||||||
if ($(this).attr('type') === 'checkbox') {
|
if ($(this).attr('type') === 'checkbox') {
|
||||||
|
|
Loading…
Reference in New Issue