resolve #1448, fix 'no help entry' not popping up in webclient
This commit is contained in:
parent
70fea693e6
commit
53a4fc0b66
5 changed files with 15 additions and 9 deletions
|
|
@ -31,6 +31,8 @@ strong {font-weight: bold;}
|
|||
|
||||
div {margin:0px;}
|
||||
|
||||
.hidden { display: none; }
|
||||
|
||||
/* Utility messages (green) */
|
||||
.sys { color: #0f0 }
|
||||
|
||||
|
|
|
|||
|
|
@ -289,6 +289,7 @@ function onPrompt(args, kwargs) {
|
|||
|
||||
// Called when the user logged in
|
||||
function onLoggedIn() {
|
||||
$('#optionsbutton').removeClass('hidden');
|
||||
Evennia.msg("webclient_options", [], {});
|
||||
}
|
||||
|
||||
|
|
@ -323,6 +324,8 @@ function onSilence(cmdname, args, kwargs) {}
|
|||
|
||||
// Handle the server connection closing
|
||||
function onConnectionClose(conn_name, evt) {
|
||||
$('#optionsbutton').addClass('hidden');
|
||||
closePopup("#optionsdialog");
|
||||
onText(["The connection was closed or lost."], {'cls': 'err'});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<div id="wrapper">
|
||||
<div id="toolbar">
|
||||
<button id="optionsbutton" type="button">⚙</button>
|
||||
<button id="optionsbutton" type="button" class="hidden">⚙</button>
|
||||
</div>
|
||||
<div id="messagewindow" role="log"></div>
|
||||
<div id="inputform">
|
||||
|
|
@ -48,4 +48,3 @@
|
|||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue