From 1284e3c83160bbba86b364fe6f0daba0b01edfcc Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Mon, 12 Aug 2019 12:38:28 -0400 Subject: [PATCH] core#1182 - revert crm.menubar.js changes --- 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 bd42b8992f38..152a6e376e18 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(); }