From 247f26f4c91aa4caf5c6def874c292170ac1331e 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 bd42b8992f..152a6e376e 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