fix projector

This commit is contained in:
Oskar Hahn 2015-09-06 10:24:15 +02:00
parent 973d3fa653
commit 2c64a161ac

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) {