From 5644e09b6bcc4278b6ba25fffb2834b3ac24c278 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 4 Sep 2024 15:11:48 -0500 Subject: [PATCH] bug fix: finalize page loading with scripts running --- cms/static/js/bootup.js | 6 ++++-- cms/static/js/menu.js | 2 ++ cms/templates/index.html | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cms/static/js/bootup.js b/cms/static/js/bootup.js index 6fc6a3f..fd8afb4 100644 --- a/cms/static/js/bootup.js +++ b/cms/static/js/bootup.js @@ -38,7 +38,7 @@ bootup.CMSObserver = function(_sysId,_domId,_fileURI){ $(_pid).remove() } $('#'+_domId).append(x.responseText) - },1500) + },10) } @@ -56,7 +56,9 @@ bootup.CMSObserver = function(_sysId,_domId,_fileURI){ // Finalize the process of rendering the content on the fly bootup.finalize = function(_id){ this.apply = function(_caller){ - menu.runScript('#'+_id) + // menu.runScript('#'+_id) + setTimeout(function(){menu.events.finalize(_id);},1000) + // menu.events.finalize(_id) } } diff --git a/cms/static/js/menu.js b/cms/static/js/menu.js index e0b32a8..f040821 100644 --- a/cms/static/js/menu.js +++ b/cms/static/js/menu.js @@ -347,6 +347,8 @@ menu.tabs.init =function (_layout,_context){ }else{ _layout.order = {menu:[]} } + + var _count = 0 var _items = 0 Object.keys(_layout.menu).forEach(_name=>{ diff --git a/cms/templates/index.html b/cms/templates/index.html index 825a231..bfc6b84 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -53,6 +53,7 @@ Vanderbilt University Medical Center +