Fix webclient prompt (issue #950)

This commit is contained in:
NatePri 2016-04-11 18:59:08 -07:00 committed by Griatch
parent 3890bcbfc7
commit a9bc6a1f64
2 changed files with 5 additions and 2 deletions

View file

@ -165,6 +165,7 @@ div {margin:0px;}
/* prompt area above input field */
#prompt {
margin-top: 10px;
padding: 0 .45em;
}
/* No javascript warning */

View file

@ -190,8 +190,10 @@ function onText(args, kwargs) {
// Handle prompt output from the server
function onPrompt(args, kwargs) {
// show prompt
$('#prompt').replaceWith(
"<div id='prompt'>" + args[0] + "</div>");
$('#prompt')
.addClass("msg out")
.html(args[0]);
doWindowResize();
}
// Silences events we don't do anything with.