Fix js error when resize screen before page loads

This commit is contained in:
Joe Uhren
2024-02-06 20:25:12 -07:00
parent d86beee960
commit e0b01e97ac
+3
View File
@@ -148,6 +148,7 @@ html(lang='en')
- showNetworkPanel = true
script.
const { OverlayScrollbars } = OverlayScrollbarsGlobal;
var isDocumentReady = false;
/* special thanks to the stackoverflow community for the getParameterByName function: https://stackoverflow.com/a/901144/3038650 */
function getParameterByName(name, url = window.location.href) {
@@ -260,8 +261,10 @@ html(lang='en')
$('#search-header-span').tooltip('hide');
});
$(window).resize(function () {
if (isDocumentReady) {
fixDataTableColumns();
fixFooterHeightAndPosition();
}
});
$(document).ready(function() {
if ('#{active}' != '')