# HG changeset patch # User Marcin Kuzminski # Date 2017-01-10 22:38:08 # Node ID 37ef84823f1901f5fe389d1a007e81ac5e529575 # Parent e70e0f00fee1f78fc6f8677015d01925ab71424d comments: do a better reset state. 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 @@ -298,6 +298,13 @@ var bindToggleButtons = function() { this.setActionButtonsDisabled(true); self.cm.setValue(content); self.cm.setOption("readOnly", false); + + if (this.resolvesId) { + // destroy the resolve action + $(this.resolvesId).parent().remove(); + } + + $(this.statusChange).select2('readonly', false); }; this.submitAjaxPOST = function(url, postData, successHandler, failHandler) {