mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Validate user-supplied avatar height range before accepting
This commit is contained in:
parent
28583ad2a2
commit
41b08fcf40
1 changed files with 13 additions and 0 deletions
|
@ -1091,4 +1091,17 @@ $(document).ready(function(){
|
|||
|
||||
$('#settings_backup .panel-body').html(html);
|
||||
}
|
||||
|
||||
function checkAvatarHeights() {
|
||||
var minHeight = Settings.avatars.min_avatar_height;
|
||||
var maxHeight = Settings.avatars.max_avatar_height;
|
||||
if (maxHeight < minHeight) {
|
||||
swal({
|
||||
type: 'error',
|
||||
title: '',
|
||||
text: "Maximum avatar height must not be less than minimum avatar height",
|
||||
html: true
|
||||
}, function(){swal.close();});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue