From 5532907a12e22adf8d5058c7bd230adfbb8686b2 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 29 Jul 2014 10:27:59 +0200 Subject: [PATCH] WIP styling comments buttons but broken quoting. --- .../components/activity-comment-directive.js | 6 ++++- .../components/activity_comment.html | 10 +++++-- .../work_packages/tabs/_user_activity.html | 27 ++++++++++++------- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/app/assets/javascripts/angular/directives/components/activity-comment-directive.js b/app/assets/javascripts/angular/directives/components/activity-comment-directive.js index e6a28b0bc5..5b8163707f 100644 --- a/app/assets/javascripts/angular/directives/components/activity-comment-directive.js +++ b/app/assets/javascripts/angular/directives/components/activity-comment-directive.js @@ -52,7 +52,11 @@ angular.module('openproject.uiComponents') scope.$emit('workPackageRefreshRequired', ''); return response; }); - } + }; + + scope.clearComment = function() { + scope.activity.comment = ''; + }; } }; }]); diff --git a/public/templates/components/activity_comment.html b/public/templates/components/activity_comment.html index d86fe8128d..fcaf8ad3d2 100644 --- a/public/templates/components/activity_comment.html +++ b/public/templates/components/activity_comment.html @@ -3,12 +3,18 @@ diff --git a/public/templates/work_packages/tabs/_user_activity.html b/public/templates/work_packages/tabs/_user_activity.html index da45b4236a..b5868970ab 100644 --- a/public/templates/work_packages/tabs/_user_activity.html +++ b/public/templates/work_packages/tabs/_user_activity.html @@ -15,15 +15,24 @@ {{ I18n.t('js.label_commented_on') }}
-
- -
-
- - cancel -
+
+
+ +
+
+ + +
+