Fix JS error when no acl is defined

This commit is contained in:
Hypolite Petovan 2018-09-09 09:54:54 -04:00
parent 071aff223a
commit 4edbea3ed0

View File

@ -305,7 +305,9 @@ $(function() {
// Asynchronous calls are deferred until the very end of the page load to ease on slower connections // Asynchronous calls are deferred until the very end of the page load to ease on slower connections
window.addEventListener("load", function(){ window.addEventListener("load", function(){
NavUpdate(); NavUpdate();
acl.get(0, 100); if (typeof acl !== 'undefined') {
acl.get(0, 100);
}
}); });
// Allow folks to stop the ajax page updates with the pause/break key // Allow folks to stop the ajax page updates with the pause/break key