# HG changeset patch # User Milka Kuzminski # Date 2021-04-09 09:30:48 # Node ID f7898de5793719d5255bc8a3ad779a9d8db18b7f # Parent a7b110e0025a560c553e44d68acdf8681254c9b4 comments: refresh on draft submit. diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -791,6 +791,11 @@ var CommentsController = function() { refreshDraftComments() } + if (window.refreshAllComments !== undefined) { + // if we have this handler, run it, and refresh all comments boxes + refreshAllComments() + } + return false; };