Address CodeQl finding

This commit is contained in:
LordGrey 2024-04-28 19:02:39 +02:00
parent 173c9ee299
commit e01e3e70a0

View File

@ -319,8 +319,8 @@ function showInfoDialog(type, header, message) {
});
$(document).on('click', '[data-dismiss-modal]', function () {
var target = $(this).attr('data-dismiss-modal');
$(target).modal('hide');
var target = $(this).data('dismiss-modal');
$('#' + target).modal('hide');
});
}