From 19eda1cfc01be70efc4f6b7807119b5d6f353d7a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 18 Jul 2019 08:41:48 -0400 Subject: [PATCH] Menubar - Use class instead of id for flexibility --- js/crm.menubar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/crm.menubar.js b/js/crm.menubar.js index ed5eb920ee..3dcc3f1de2 100644 --- a/js/crm.menubar.js +++ b/js/crm.menubar.js @@ -27,13 +27,13 @@ // Wait for crm-container present on the page as it's faster than document.ready function insert(markup) { - if ($('#crm-container').length) { + if ($('.crm-container').length) { render(markup); } else { new MutationObserver(function(mutations, observer) { _.each(mutations, function(mutant) { _.each(mutant.addedNodes, function(node) { - if ($(node).is('#crm-container')) { + if ($(node).is('.crm-container')) { render(markup); observer.disconnect(); } -- 2.25.1