From: Romain Thouvenin Date: Mon, 15 Mar 2021 13:34:40 +0000 (+0100) Subject: Improve docs in comments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a5929be3d5fa802f62b1aee94f6b7fc4f469da2;p=civicrm-core.git Improve docs in comments --- diff --git a/js/Common.js b/js/Common.js index e5754fcfe0..bca9edf887 100644 --- a/js/Common.js +++ b/js/Common.js @@ -420,6 +420,8 @@ if (!CRM.vars) CRM.vars = {}; }; // quickform doesn't support optgroups so here's a hack :( + // Instead of using wrapAll or similar that repeatedly appends options to the group and redraw the page (=> very slow on large lists), + // build bulk HTML and insert in single shot var optGroups = {}; $('option[value^=crm_optgroup]', this).each(function () { var groupHtml = '';