From 8a5929be3d5fa802f62b1aee94f6b7fc4f469da2 Mon Sep 17 00:00:00 2001 From: Romain Thouvenin Date: Mon, 15 Mar 2021 14:34:40 +0100 Subject: [PATCH] Improve docs in comments --- js/Common.js | 2 ++ 1 file changed, 2 insertions(+) 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 = ''; -- 2.25.1