home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In ASCII art enter mode, on length failure, name needed length.
[plomrogue2]
/
rogue_chat.html
diff --git
a/rogue_chat.html
b/rogue_chat.html
index dd8de5b783bbf835fa73d5a1b92b7c80f5901629..31a85a56d3d45e787b7f6d11f92b9fc6ecdac4df 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-1045,7
+1045,7
@@
let tui = {
},
pick_selectable: function(task_name) {
const i = parseInt(this.inputEl.value);
},
pick_selectable: function(task_name) {
const i = parseInt(this.inputEl.value);
- if (isNaN(
i
) || i < 0 || i >= this.selectables.length) {
+ if (isNaN(
this.inputEl.value
) || i < 0 || i >= this.selectables.length) {
tui.log_msg('? invalid index, aborted');
} else {
server.send(['TASK:' + task_name, tui.selectables[i]]);
tui.log_msg('? invalid index, aborted');
} else {
server.send(['TASK:' + task_name, tui.selectables[i]]);
@@
-1055,7
+1055,7
@@
let tui = {
},
enter_ascii_art: function(command) {
if (this.inputEl.value.length != 6) {
},
enter_ascii_art: function(command) {
if (this.inputEl.value.length != 6) {
- this.log_msg('? wrong input length, try again');
+ this.log_msg('? wrong input length,
must be 6;
try again');
return;
}
this.log_msg(' ' + this.inputEl.value);
return;
}
this.log_msg(' ' + this.inputEl.value);