diff --git a/openslides/motions/static/js/motions/motion-services.js b/openslides/motions/static/js/motions/motion-services.js index 895c500f0..3deb3c3cd 100644 --- a/openslides/motions/static/js/motions/motion-services.js +++ b/openslides/motions/static/js/motions/motion-services.js @@ -467,6 +467,16 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions', MotionChangeRecommendation.destroy(changeId); }; + obj.rejectAll = function (motion) { + var changeRecommendations = MotionChangeRecommendation.filter({ + 'where': {'motion_version_id': {'==': motion.active_version}} + }); + _.forEach(changeRecommendations, function(change) { + change.rejected = true; + change.saveStatus(); + }); + }; + obj.repositionOriginalAnnotations = function () { var $changeRecommendationList = $('.change-recommendation-list'), $lineNumberReference = $('.motion-text-original'); diff --git a/openslides/motions/static/templates/motions/motion-detail/change-summary.html b/openslides/motions/static/templates/motions/motion-detail/change-summary.html index a3a0d55e5..653cbbfeb 100644 --- a/openslides/motions/static/templates/motions/motion-detail/change-summary.html +++ b/openslides/motions/static/templates/motions/motion-detail/change-summary.html @@ -3,6 +3,14 @@ Summary of change recommendations: + + + +
No change recommendations yet