mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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)
|
||||
return
|
||||
|
||||
self.msg((text, {"window": "help"}))
|
||||
self.msg((text, {"type": "help"}))
|
||||
|
||||
@staticmethod
|
||||
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
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue