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(); }