From 43109ab8f4b789be08cf218464ca85f7f2e146f8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 5 Feb 2017 12:19:10 +0100 Subject: [PATCH] Change the webclient OOB text kwarg to 'type' instead of 'window' to make it more general. --- evennia/commands/default/help.py | 2 +- evennia/web/webclient/static/webclient/js/webclient_gui.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/commands/default/help.py b/evennia/commands/default/help.py index c5a2b7f25e..a4ebc03e35 100644 --- a/evennia/commands/default/help.py +++ b/evennia/commands/default/help.py @@ -68,7 +68,7 @@ class CmdHelp(Command): evmore.msg(self.caller, text) return - self.msg((text, {"window": "help"})) + self.msg((text, {"type": "help"})) @staticmethod def format_help_entry(title, help_text, aliases=None, suggested=None): diff --git a/evennia/web/webclient/static/webclient/js/webclient_gui.js b/evennia/web/webclient/static/webclient/js/webclient_gui.js index ba2e0f1121..7f499253f9 100644 --- a/evennia/web/webclient/static/webclient/js/webclient_gui.js +++ b/evennia/web/webclient/static/webclient/js/webclient_gui.js @@ -253,7 +253,7 @@ function onText(args, kwargs) { // append message to previous ones, then scroll so latest is at // the bottom. Send 'cls' kwarg to modify the output class. var renderto = "main"; - if (kwargs["window"] == "help") { + if (kwargs["type"] == "help") { if (("helppopup" in options) && (options["helppopup"])) { renderto = "#helpdialog"; } @@ -345,7 +345,7 @@ function onBeforeUnload() { return "You are about to leave the game. Please confirm."; } -// Notifications +// Notifications var unread = 0; var originalTitle = document.title; var focused = true;