fix reload page with cached checkbox status in FireFox

This commit is contained in:
Sergey Linnik
2023-03-02 14:35:54 +05:00
parent 4d8a893326
commit 830fa87e27
2 changed files with 12 additions and 12 deletions

View File

@ -245,7 +245,7 @@ if (typeof jQuery != "undefined") {
window.open(url, "_blank");
jq('#hiddenFileName').val("");
jq.unblockUI();
document.location.reload();
document.location.reload(true);
});
jq(document).on("click", "#beginView:not(.disable)", function () {
@ -258,7 +258,7 @@ if (typeof jQuery != "undefined") {
window.open(url, "_blank");
jq('#hiddenFileName').val("");
jq.unblockUI();
document.location.reload();
document.location.reload(true);
});
jq(document).on("click", "#beginEmbedded:not(.disable)", function () {
@ -272,13 +272,13 @@ if (typeof jQuery != "undefined") {
});
jq(document).on("click", ".reload-page", function () {
setTimeout(function () { document.location.reload(); }, 1000);
setTimeout(function () { document.location.reload(true); }, 1000);
return true;
});
jq(document).on("mouseup", ".reload-page", function (event) {
if (event.which == 2) {
setTimeout(function () { document.location.reload(); }, 1000);
setTimeout(function () { document.location.reload(true); }, 1000);
}
return true;
});
@ -288,7 +288,7 @@ if (typeof jQuery != "undefined") {
jq("#embeddedView").remove();
jq.unblockUI();
if (mustReload) {
document.location.reload();
document.location.reload(true);
}
});
@ -303,7 +303,7 @@ if (typeof jQuery != "undefined") {
type: "delete",
url: requestAddress,
complete: function (data) {
document.location.reload();
document.location.reload(true);
}
});
});