add version to footer

This commit is contained in:
2022-01-31 04:31:45 +03:00
parent ed3cdd62bd
commit 448880ed91
6 changed files with 23 additions and 5 deletions

View File

@ -36,6 +36,16 @@ function loadTypes(url, selector) {
});
}
function loadVersion() {
$.ajax({
url: "/api/v1/status",
type: "GET",
dataType: "json",
success: function (data) { $("#sources-link").text(`ffxivbis ${data.version}`); },
error: function (jqXHR, _, errorThrown) { requestAlert(jqXHR, errorThrown); },
});
}
function setupFormClear(dialog, reset) {
dialog.on("hide.bs.modal", function () {
$(this).find("form").trigger("reset");