From: Coleman Watts Date: Mon, 28 Apr 2014 21:27:17 +0000 (-0700) Subject: CRM-14477 - Fix case datatable refresh X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0144d36828db9f34170c47630b9f21463f96da68;p=civicrm-core.git CRM-14477 - Fix case datatable refresh --- diff --git a/templates/CRM/Case/Form/ActivityChangeStatusJs.tpl b/templates/CRM/Case/Form/ActivityChangeStatusJs.tpl index a801e4c396..d5c58256e4 100644 --- a/templates/CRM/Case/Form/ActivityChangeStatusJs.tpl +++ b/templates/CRM/Case/Form/ActivityChangeStatusJs.tpl @@ -69,16 +69,7 @@ return false; } else { - // reload the table on success - if (window.buildCaseActivities) { - // If we are using a datatable - buildCaseActivities(true); - } - else { - // Legacy refresh for non-datatable screens - var table = link.closest('table.nestedActivitySelector'); - table.parent().crmSnippet({url: CRM.url('civicrm/case/details', table.data('params'))}).crmSnippet('refresh'); - } + CRM.refreshParent(link); } }, error : function(jqXHR) {