diff --git a/openslides/core/static/js/core/core.js b/openslides/core/static/js/core/core.js index 50f289b58..df7f58d7a 100644 --- a/openslides/core/static/js/core/core.js +++ b/openslides/core/static/js/core/core.js @@ -99,13 +99,11 @@ angular.module('OpenSlidesApp.core', [ } ]) -// Load the global data on startup and when the operator changes +// Load the global data on startup .run([ 'loadGlobalData', - 'operator', function(loadGlobalData, operator) { loadGlobalData(); - operator.onOperatorChange(loadGlobalData); } ]) @@ -218,6 +216,15 @@ angular.module('OpenSlidesApp.core.site', [ } ]) +// Load the global data when the operator changes +.run([ + 'loadGlobalData', + 'operator', + function(loadGlobalData, operator) { + operator.onOperatorChange(loadGlobalData); + } +]) + .config([ 'mainMenuProvider', function (mainMenuProvider) {