Don't propagate api button click events to prevent closing the drawer

This commit is contained in:
SillyLossy
2023-03-23 11:23:36 +02:00
parent c75fd0379d
commit a46e7a30bd
2 changed files with 8 additions and 4 deletions

View File

@ -597,7 +597,8 @@ $(document).ready(function () {
saveSettingsDebounced();
});
$("#api_button_openai").click(function () {
$("#api_button_openai").click(function (e) {
e.stopPropagation();
if ($('#api_key_openai').val() != '') {
$("#api_loading_openai").css("display", 'inline-block');
$("#api_button_openai").css("display", 'none');