From f17951f363818a2bc56265c4cee39f4d15cc0663 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Tue, 18 Sep 2018 09:00:21 +0200 Subject: [PATCH] Little fixes for current master (fixes #3883, fixes #3882, fixes #3880) --- openslides/motions/static/js/motions/projector.js | 9 +++++++-- .../motions/amendment-paragraph-choose-form.html | 2 +- .../static/templates/motions/motion-detail/toolbar.html | 5 +++-- .../motions/static/templates/motions/slide_motion.html | 8 ++++---- requirements.txt | 2 +- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/openslides/motions/static/js/motions/projector.js b/openslides/motions/static/js/motions/projector.js index d7107eded..f4af95f03 100644 --- a/openslides/motions/static/js/motions/projector.js +++ b/openslides/motions/static/js/motions/projector.js @@ -19,6 +19,7 @@ angular.module('OpenSlidesApp.motions.projector', [ .controller('SlideMotionCtrl', [ '$scope', + '$timeout', 'Config', 'Motion', 'MotionChangeRecommendation', @@ -27,8 +28,8 @@ angular.module('OpenSlidesApp.motions.projector', [ 'Notify', 'ProjectorID', 'MotionPollDecimalPlaces', - function($scope, Config, Motion, MotionChangeRecommendation, ChangeRecommendationView, User, - Notify, ProjectorID, MotionPollDecimalPlaces) { + function($scope, $timeout, Config, Motion, MotionChangeRecommendation, + ChangeRecommendationView, User, Notify, ProjectorID, MotionPollDecimalPlaces) { // Attention! Each object that is used here has to be dealt on server side. // Add it to the coresponding get_requirements method of the ProjectorElement // class. @@ -42,6 +43,10 @@ angular.module('OpenSlidesApp.motions.projector', [ if (!line) { return; } + $scope.highlight = line; + $timeout(function () { + $scope.highlight = 0; + }, 4000); var scrollTop = null; $('.line-number-' + line).each(function() { diff --git a/openslides/motions/static/templates/motions/amendment-paragraph-choose-form.html b/openslides/motions/static/templates/motions/amendment-paragraph-choose-form.html index b5279b7fd..c4108f1a3 100644 --- a/openslides/motions/static/templates/motions/amendment-paragraph-choose-form.html +++ b/openslides/motions/static/templates/motions/amendment-paragraph-choose-form.html @@ -1,4 +1,4 @@ -

Choose the paragraph to amend!

+

Please choose the paragraph to amend

{{ alert.msg }} diff --git a/openslides/motions/static/templates/motions/motion-detail/toolbar.html b/openslides/motions/static/templates/motions/motion-detail/toolbar.html index 8eeafadc7..5986ab95a 100644 --- a/openslides/motions/static/templates/motions/motion-detail/toolbar.html +++ b/openslides/motions/static/templates/motions/motion-detail/toolbar.html @@ -48,7 +48,8 @@ onaftersave="scrollToAndHighlight(gotoLinenumber)">
- @@ -56,7 +57,7 @@ ng-if="lineNumberMode != 'none' && motion.isProjected().length && operator.hasPerms('core.can_manage_projector')" ng-click="toggleLinesForProjector()" - uib-tooltip="{{ 'Show highlighted line also on projector.' | translate }}"> + uib-tooltip="{{ 'Show highlighted line also on projector' | translate }}">   diff --git a/openslides/motions/static/templates/motions/slide_motion.html b/openslides/motions/static/templates/motions/slide_motion.html index abe461ed4..564d655ed 100644 --- a/openslides/motions/static/templates/motions/slide_motion.html +++ b/openslides/motions/static/templates/motions/slide_motion.html @@ -94,7 +94,7 @@
-
@@ -130,19 +130,19 @@
-
-
-
diff --git a/requirements.txt b/requirements.txt index 0d17f1f97..b18647db0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,5 @@ coverage # Use master of flake8 until flake8 3.6 is released that supports python3.7 git+https://gitlab.com/pycqa/flake8.git isort==4.2.5 -mypy +mypy<=0.620 fakeredis