From 2c64a161ac95353fd78a1731df847249ec3abf50 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 6 Sep 2015 10:24:15 +0200 Subject: [PATCH] fix projector --- openslides/core/static/js/core/core.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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) {