Merge pull request #413 from one-some/bug-hunt

Fix WI comment editing
This commit is contained in:
henk717
2023-07-22 00:34:46 +02:00
committed by GitHub

View File

@@ -2408,8 +2408,8 @@ function world_info_entry(data) {
comment.setAttribute("uid", data.uid); comment.setAttribute("uid", data.uid);
comment.value = data.comment; comment.value = data.comment;
comment.onchange = function () { comment.onchange = function () {
world_info_data[this.getAttribute('uid')]['comment'] = this.textContent; world_info_data[data.uid].comment = this.value;
send_world_info(this.getAttribute('uid')); send_world_info(data.uid);
this.classList.add("pulse"); this.classList.add("pulse");
} }
comment.classList.remove("pulse"); comment.classList.remove("pulse");