From 0144d36828db9f34170c47630b9f21463f96da68 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 28 Apr 2014 14:27:17 -0700 Subject: [PATCH] CRM-14477 - Fix case datatable refresh --- templates/CRM/Case/Form/ActivityChangeStatusJs.tpl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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) { -- 2.25.1