bug fix: finalize page loading with scripts running

v2.1
Steve Nyemba 3 months ago
parent 87952d61fe
commit 5644e09b6b

@ -38,7 +38,7 @@ bootup.CMSObserver = function(_sysId,_domId,_fileURI){
$(_pid).remove() $(_pid).remove()
} }
$('#'+_domId).append(x.responseText) $('#'+_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 // Finalize the process of rendering the content on the fly
bootup.finalize = function(_id){ bootup.finalize = function(_id){
this.apply = function(_caller){ this.apply = function(_caller){
menu.runScript('#'+_id) // menu.runScript('#'+_id)
setTimeout(function(){menu.events.finalize(_id);},1000)
// menu.events.finalize(_id)
} }
} }

@ -347,6 +347,8 @@ menu.tabs.init =function (_layout,_context){
}else{ }else{
_layout.order = {menu:[]} _layout.order = {menu:[]}
} }
var _count = 0 var _count = 0
var _items = 0 var _items = 0
Object.keys(_layout.menu).forEach(_name=>{ Object.keys(_layout.menu).forEach(_name=>{

@ -53,6 +53,7 @@ Vanderbilt University Medical Center
<script src="{{system.parentContext}}/static/js/menu.js"></script> <script src="{{system.parentContext}}/static/js/menu.js"></script>
<script src="{{system.parentContext}}/static/js/search.js"></script> <script src="{{system.parentContext}}/static/js/search.js"></script>
<script src="{{system.parentContext}}/static/js/bootup.js"></script> <script src="{{system.parentContext}}/static/js/bootup.js"></script>
<script src="{{system.parentContext}}/static/js/apexcharts/apexcharts.min.js"></script>
<script src="{{system.parentContext}}/static/js/fontawesome/js/all.js"></script> <script src="{{system.parentContext}}/static/js/fontawesome/js/all.js"></script>
</head> </head>
<script> <script>

Loading…
Cancel
Save