Change the webclient OOB text kwarg to 'type' instead of 'window' to make it more general.
This commit is contained in:
parent
661ec5cb0b
commit
43109ab8f4
2 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ class CmdHelp(Command):
|
||||||
evmore.msg(self.caller, text)
|
evmore.msg(self.caller, text)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.msg((text, {"window": "help"}))
|
self.msg((text, {"type": "help"}))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def format_help_entry(title, help_text, aliases=None, suggested=None):
|
def format_help_entry(title, help_text, aliases=None, suggested=None):
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ function onText(args, kwargs) {
|
||||||
// append message to previous ones, then scroll so latest is at
|
// append message to previous ones, then scroll so latest is at
|
||||||
// the bottom. Send 'cls' kwarg to modify the output class.
|
// the bottom. Send 'cls' kwarg to modify the output class.
|
||||||
var renderto = "main";
|
var renderto = "main";
|
||||||
if (kwargs["window"] == "help") {
|
if (kwargs["type"] == "help") {
|
||||||
if (("helppopup" in options) && (options["helppopup"])) {
|
if (("helppopup" in options) && (options["helppopup"])) {
|
||||||
renderto = "#helpdialog";
|
renderto = "#helpdialog";
|
||||||
}
|
}
|
||||||
|
|
@ -345,7 +345,7 @@ function onBeforeUnload() {
|
||||||
return "You are about to leave the game. Please confirm.";
|
return "You are about to leave the game. Please confirm.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notifications
|
// Notifications
|
||||||
var unread = 0;
|
var unread = 0;
|
||||||
var originalTitle = document.title;
|
var originalTitle = document.title;
|
||||||
var focused = true;
|
var focused = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue