diff --git a/infoscreen/static/js/infoscreen_controllers.js b/infoscreen/static/js/infoscreen_controllers.js index 704488b..8525c87 100644 --- a/infoscreen/static/js/infoscreen_controllers.js +++ b/infoscreen/static/js/infoscreen_controllers.js @@ -11,6 +11,8 @@ app.controller('infoscreen_main', function($scope,$http,$timeout){ $http.get('/infoscreen/rotation/'+$scope.rotation).then(function(response){ templates = response.data.instances; $scope.next(); + },function(response){ + $timeout(get_rotation, 10000); }); }