mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Delete world info bug fixed
This commit is contained in:
@@ -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;
|
||||
text-shadow: 0 1px #AAA;
|
||||
margin: 0 -5px;
|
||||
padding: 0 17px;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.tabrow span.selected {
|
||||
background: #FFF;
|
||||
|
@@ -1274,7 +1274,7 @@ function world_info_entry(data) {
|
||||
delete_icon.setAttribute("title", data.title);
|
||||
delete_icon.onclick = function () {
|
||||
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();
|
||||
} else {
|
||||
socket.emit("delete_world_info", this.getAttribute("uid"));
|
||||
|
Reference in New Issue
Block a user