Change the webclient OOB text kwarg to 'type' instead of 'window' to make it more general.

This commit is contained in:
Griatch 2017-02-05 12:19:10 +01:00
parent 661ec5cb0b
commit 43109ab8f4
2 changed files with 3 additions and 3 deletions

View file

@ -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):

View file

@ -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;