diff --git a/openslides/core/static/js/core/start.js b/openslides/core/static/js/core/start.js index bcdbac630..6eeba1f58 100644 --- a/openslides/core/static/js/core/start.js +++ b/openslides/core/static/js/core/start.js @@ -14,7 +14,9 @@ angular.module('OpenSlidesApp.core.start', []) 'operator', 'Group', 'mainMenu', - function($http, $rootScope, $state, $q, DS, autoupdate, operator, Group, mainMenu) { + 'ngDialog', + 'LoginDialog', + function($http, $rootScope, $state, $q, DS, autoupdate, operator, Group, mainMenu, ngDialog, LoginDialog) { var OpenSlides = { bootup: function () { $rootScope.openslidesBootstrapDone = false; @@ -41,6 +43,12 @@ angular.module('OpenSlidesApp.core.start', []) operator.setUser(null); $rootScope.openslidesBootstrapDone = false; $rootScope.operator = operator; + // close all open dialogs (except the login dialog) + _.forEach(ngDialog.getOpenDialogs(), function (id) { + if (id !== LoginDialog.id) { + ngDialog.close(id); + } + }); }, reboot: function () { this.shutdown(); diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 7cff82546..6edfb3225 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -987,7 +987,7 @@ angular.module('OpenSlidesApp.motions.site', [ function (motion) {return motion.category ? motion.category.name : '';}, function (motion) {return motion.motionBlock ? motion.motionBlock.name : '';}, function (motion) {return motion.recommendation ? motion.getRecommendationName() : '';}, - function (motion) {return motion.comments.join(' ');}, + function (motion) {return _.filter(motion.comments, function (comment) {return !!comment;}).join(' ');}, ]; $scope.filter.propertyDict = { 'submitters': function (submitter) { diff --git a/openslides/motions/static/templates/motions/motion-detail.html b/openslides/motions/static/templates/motions/motion-detail.html index 50ba83ddb..4277b47f8 100644 --- a/openslides/motions/static/templates/motions/motion-detail.html +++ b/openslides/motions/static/templates/motions/motion-detail.html @@ -161,10 +161,10 @@
- + + placeholder="{{ motion.comments[commentFieldForStateId] }}">