From 3e56de93e5d4151d90e666b34ab14070cd83c264 Mon Sep 17 00:00:00 2001 From: Timothy Carlisle Date: Thu, 15 Aug 2019 02:19:31 -0500 Subject: [PATCH] Fixed Issue #1789: Help popup in web client not clearing after close I modified line 140: Replacing the .append with .prepend. This allows for a running log of previous help requests to be pushed to the bottom. --- evennia/web/webclient/static/webclient/js/plugins/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/web/webclient/static/webclient/js/plugins/options.js b/evennia/web/webclient/static/webclient/js/plugins/options.js index d3b6d13158..1a92e94e6d 100644 --- a/evennia/web/webclient/static/webclient/js/plugins/options.js +++ b/evennia/web/webclient/static/webclient/js/plugins/options.js @@ -137,7 +137,7 @@ let options_plugin = (function () { // is helppopup set? and if so, does this Text have type 'help'? if ('helppopup' in options && options['helppopup'] ) { if (kwargs && ('type' in kwargs) && (kwargs['type'] == 'help') ) { - $('#helpdialogcontent').append('
'+ args + '
'); + $('#helpdialogcontent').prepend('
'+ args + '
'); plugins['popups'].togglePopup("#helpdialog"); return true; }