From a12440ed2c3055aedf85efe46e91b42c9c5d45e4 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 11 Aug 2017 12:37:19 +0200 Subject: [PATCH] Exclude special comments in comment field settings; fixing the inline editiing --- openslides/core/static/js/core/site.js | 9 +++++++++ openslides/core/static/templates/config-form-field.html | 2 +- openslides/motions/static/js/motions/motion-services.js | 2 +- openslides/motions/static/js/motions/site.js | 4 ++++ .../static/templates/motions/motion-detail/comments.html | 7 +++---- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/openslides/core/static/js/core/site.js b/openslides/core/static/js/core/site.js index e369aa5ec..dcbbc869d 100644 --- a/openslides/core/static/js/core/site.js +++ b/openslides/core/static/js/core/site.js @@ -741,6 +741,15 @@ angular.module('OpenSlidesApp.core.site', [ } ]) +.filter('excludeSpecialComments', function () { + return function (comments) { + return _.filter(comments, function (comment) { + var specialComment = comment.forState || comment.forRecommendation; + return !specialComment; + }); + }; +}) + // angular formly config options .run([ 'formlyConfig', diff --git a/openslides/core/static/templates/config-form-field.html b/openslides/core/static/templates/config-form-field.html index 0bb9d778f..67a8cc8e4 100644 --- a/openslides/core/static/templates/config-form-field.html +++ b/openslides/core/static/templates/config-form-field.html @@ -20,7 +20,7 @@
-
+
+
@@ -25,9 +25,8 @@
-
-
+
+

{{ field.name }} internal