Skip to content

Commit 9923687

Browse files
authored
Merge pull request #10117 from colemanw/CRM-20179
CRM-20179 - Fix race condition on manage group page
2 parents 1946e8f + 3311ab9 commit 9923687

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

templates/CRM/Group/Form/Search.tpl

+6-4
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@
142142
//Reload table after draw
143143
$(settings.nTable).trigger('crmLoad');
144144
if (parentsOnly) {
145-
$('tbody tr.crm-group-parent', settings.nTable).each( function() {
146-
$(this).find('td:first')
147-
.prepend('{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}')
148-
.find('div').css({'display': 'inline'});
145+
CRM.loadScript(CRM.config.resourceBase + 'js/jquery/jquery.crmEditable.js').done(function () {
146+
$('tbody tr.crm-group-parent', settings.nTable).each(function () {
147+
$(this).find('td:first')
148+
.prepend('{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}')
149+
.find('div').css({'display': 'inline'});
150+
});
149151
});
150152
}
151153
}

0 commit comments

Comments
 (0)