comments: do a better reset state.

This commit is contained in:
Marcin Kuzminski 2017-01-10 23:38:08 +01:00
parent 6ccb2377c3
commit e18c9b0cec

View file

@ -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) {