Fix prompt edit popup not appearing after refactoring

This commit is contained in:
maver 2023-06-25 20:34:25 +02:00
parent 25eef5d100
commit 670119e143
1 changed files with 2 additions and 2 deletions

View File

@ -830,7 +830,7 @@ PromptManagerModule.prototype.makeDraggable = function () {
* @returns {void} * @returns {void}
*/ */
PromptManagerModule.prototype.showEditForm = function () { PromptManagerModule.prototype.showEditForm = function () {
$('#openai_prompt_manager_popup').first() $('#'+this.configuration.prefix +'prompt_manager_popup').first()
.slideDown(200, "swing") .slideDown(200, "swing")
.addClass('openDrawer'); .addClass('openDrawer');
} }
@ -840,7 +840,7 @@ PromptManagerModule.prototype.showEditForm = function () {
* @returns {void} * @returns {void}
*/ */
PromptManagerModule.prototype.hideEditForm = function () { PromptManagerModule.prototype.hideEditForm = function () {
$('#openai_prompt_manager_popup').first() $('#'+this.configuration.prefix +'prompt_manager_popup').first()
.slideUp(200, "swing") .slideUp(200, "swing")
.removeClass('openDrawer'); .removeClass('openDrawer');
} }