Delete world info bug fixed

This commit is contained in:
ebolam
2022-08-26 19:02:29 -04:00
parent 069e236292
commit 96f0999ffc
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ input[type="range"]::-ms-fill-upper {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 #AAA; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 #AAA;
text-shadow: 0 1px #AAA; text-shadow: 0 1px #AAA;
margin: 0 -5px; margin: 0 -5px;
padding: 0 17px; padding: 0 15px;
} }
.tabrow span.selected { .tabrow span.selected {
background: #FFF; background: #FFF;

View File

@@ -1274,7 +1274,7 @@ function world_info_entry(data) {
delete_icon.setAttribute("title", data.title); delete_icon.setAttribute("title", data.title);
delete_icon.onclick = function () { delete_icon.onclick = function () {
if (confirm("This will delete world info "+this.getAttribute("title"))) { if (confirm("This will delete world info "+this.getAttribute("title"))) {
if (this.getAttribute("uid") == "-1") { if (parseInt(this.getAttribute("uid")) < 0) {
this.parentElement.parentElement.remove(); this.parentElement.parentElement.remove();
} else { } else {
socket.emit("delete_world_info", this.getAttribute("uid")); socket.emit("delete_world_info", this.getAttribute("uid"));