返回提交历史
Modified
static/webui/script.js
+6
-0
XFEstudio/SpaceNinjaServer
fix(webui): invalidate cached inventory after removing gear (#3923)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3923 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
626970ba
代码差异
1 个文件
+6
-0
@@ -3021,6 +3021,8 @@ function disposeOfGear(category, oid) {
3021
3021
Recipe: "webui",
3022
3022
petId: oid
3023
3023
})
3024
}).done(function () {
3025
inventory_data = undefined; // UI is up-to-date now, but subsequent updates will need to grab new data
3024
3026
});
3025
3027
});
3026
3028
} else {
@@ -3040,6 +3042,8 @@ function disposeOfGear(category, oid) {
3040
3042
url: "/api/sell.php?" + window.authz,
3041
3043
contentType: "text/plain",
3042
3044
data: JSON.stringify(data)
3045
}).done(function () {
3046
inventory_data = undefined; // UI is up-to-date now, but subsequent updates will need to grab new data
3043
3047
});
3044
3048
});
3045
3049
}
@@ -3062,6 +3066,8 @@ function disposeOfItems(category, type, count) {
3062
3066
url: "/api/sell.php?" + window.authz,
3063
3067
contentType: "text/plain",
3064
3068
data: JSON.stringify(data)
3069
}).done(function () {
3070
inventory_data = undefined; // UI is up-to-date now, but subsequent updates will need to grab new data
3065
3071
});
3066
3072
});
3067
3073
}