mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #1870 from frnknstn/webclient
pre-populate the untagged types (fixes #1869)
This commit is contained in:
commit
0733ac2bdf
1 changed files with 8 additions and 1 deletions
|
|
@ -53,7 +53,11 @@ let goldenlayout = (function () {
|
|||
$(".content").each( function () {
|
||||
let types = $(this).attr("types");
|
||||
if ( typeof types !== "undefined" ) {
|
||||
untagged = filter( types.split(" "), untagged );
|
||||
let typesArray = types.split(" ");
|
||||
// add our types to known types so that the onText function don't add them to untagged later
|
||||
knownTypes = Array.from(new Set([...knownTypes, ...typesArray]));
|
||||
// remove our types from the untagged array
|
||||
untagged = filter( typesArray, untagged );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -447,6 +451,9 @@ let goldenlayout = (function () {
|
|||
// finish the setup and actually start GoldenLayout
|
||||
myLayout.init();
|
||||
|
||||
// work out which types are untagged based on our pre-configured layout
|
||||
calculateUntaggedTypes();
|
||||
|
||||
// Set the Event handler for when the client window changes size
|
||||
$(window).bind("resize", scrollAll);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue