Skip to content
Snippets Groups Projects
Commit 0c03c6da authored by Demian Katz's avatar Demian Katz
Browse files

Fix broken comments on record page.

parent b92f7de4
No related merge requests found
...@@ -110,6 +110,9 @@ function registerAjaxCommentRecord() { ...@@ -110,6 +110,9 @@ function registerAjaxCommentRecord() {
}) })
.done(function addCommentDone(/*response, textStatus*/) { .done(function addCommentDone(/*response, textStatus*/) {
var $tab = $(form).closest('.list-tab-content'); var $tab = $(form).closest('.list-tab-content');
if (!$tab.length) {
$tab = $(form).closest('.tab-pane');
}
refreshCommentList($tab, id, recordSource); refreshCommentList($tab, id, recordSource);
$(form).find('textarea[name="comment"]').val(''); $(form).find('textarea[name="comment"]').val('');
$(form).find('input[type="submit"]').button('loading'); $(form).find('input[type="submit"]').button('loading');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment