From 81e7cbc8beae512a171dbd3fa2ecd410fc50290b Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Tue, 18 Apr 2017 17:46:36 +0200 Subject: [PATCH] clear comment modal if comment was created --- app/views/request_for_comments/show.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 4e64149b..0f68f2b0 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -230,6 +230,7 @@ also, all settings from the rails model needed for the editor configuration in t if (commenttext !== "") { createComment(file_id, row, editor, commenttext); + commentModal.find('textarea').val('') ; commentModal.modal('hide'); } });