Fix JS error when no acl is defined
This commit is contained in:
parent
071aff223a
commit
4edbea3ed0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user