Merge pull request #1620 from ostcar/fix_operator_on_projector

Fix the projector
This commit is contained in:
Norman Jäckel 2015-09-06 10:30:35 +02:00
commit 063b6e5563

View File

@ -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([ .run([
'loadGlobalData', 'loadGlobalData',
'operator',
function(loadGlobalData, operator) { function(loadGlobalData, operator) {
loadGlobalData(); 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([ .config([
'mainMenuProvider', 'mainMenuProvider',
function (mainMenuProvider) { function (mainMenuProvider) {