N°3567 - Migrate backoffice pages to new UIBlock system : App. upgrade (use ibo-is-hidden class to hide blocks)

This commit is contained in:
Eric
2021-01-20 10:41:04 +01:00
parent 392cdf6058
commit 9b67f7beba
20 changed files with 27 additions and 33 deletions

View File

@@ -58,7 +58,7 @@ $.when(oGetItopDiskSpace, oGetDBDiskSpace).then(
var iDBDiskSpace = data2[0].iDBDiskSpace;
if ((2 * (iItopDiskSpace + iDBDiskSpace)) > iDiskFreeSpace)
{
$("#dobackup-warning").show();
$("#dobackup-warning").removeClass("ibo-is-hidden");
}
}
);
@@ -71,17 +71,17 @@ $("#file").on("change", function(e) {
{
if (selectedFile.size > {{ iFileUploadMaxSize }})
{
errorMsg.show();
errorMsg.removeClass("ibo-is-hidden");
submitButton.prop("disabled", true);
return;
}
}
errorMsg.hide();
errorMsg.addClass("ibo-is-hidden");
submitButton.prop("disabled", false);
});
$("#check-update").on("click", function(e) {
$("#submit-wait").show();
$("#submit-wait").removeClass("ibo-is-hidden");
$(this).prop("disabled", true);
$(".ajax-spin").removeClass("fa-spinner").removeClass("fa-spin").addClass("fa-times");
$(this).parents('form').submit();