From 3311ab9d1bf892ae646ba8a0dca2758bfc1a27ae Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 5 Apr 2017 14:39:06 -0400 Subject: [PATCH] CRM-20179 - Fix race condition on manage group page --- templates/CRM/Group/Form/Search.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Group/Form/Search.tpl b/templates/CRM/Group/Form/Search.tpl index bb9f0bd033..5a59dd1a90 100644 --- a/templates/CRM/Group/Form/Search.tpl +++ b/templates/CRM/Group/Form/Search.tpl @@ -142,10 +142,12 @@ //Reload table after draw $(settings.nTable).trigger('crmLoad'); if (parentsOnly) { - $('tbody tr.crm-group-parent', settings.nTable).each( function() { - $(this).find('td:first') - .prepend('{/literal}{literal}') - .find('div').css({'display': 'inline'}); + CRM.loadScript(CRM.config.resourceBase + 'js/jquery/jquery.crmEditable.js').done(function () { + $('tbody tr.crm-group-parent', settings.nTable).each(function () { + $(this).find('td:first') + .prepend('{/literal}{literal}') + .find('div').css({'display': 'inline'}); + }); }); } } -- 2.25.1