From 84f755a6e5bf3c656fa81033a9cf28f43f79cae5 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 3 Nov 2017 10:25:22 +0100 Subject: [PATCH] hide 'undefined' error message --- openslides/core/static/js/core/projector.js | 1 + openslides/core/static/templates/projector-container.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openslides/core/static/js/core/projector.js b/openslides/core/static/js/core/projector.js index 9530f6692..1146b6998 100644 --- a/openslides/core/static/js/core/projector.js +++ b/openslides/core/static/js/core/projector.js @@ -126,6 +126,7 @@ angular.module('OpenSlidesApp.core.projector', ['OpenSlidesApp.core']) // delay displaying the error message, because with a slow internet // connection, the autoupdate with the projector may be delayed. We // de not want to irritate the user by showing this error to early. + $scope.error = ''; $timeout(function () { if ($scope.showError) { $scope.error = gettext('Can not open the projector.'); diff --git a/openslides/core/static/templates/projector-container.html b/openslides/core/static/templates/projector-container.html index c8e917122..8c1097547 100644 --- a/openslides/core/static/templates/projector-container.html +++ b/openslides/core/static/templates/projector-container.html @@ -13,7 +13,7 @@ -
+