Unverified Commit 0b1ac7c8 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub

Merge pull request #15021 from seamuslee001/5.17

#1182 - revert crm.menubar.js changes
parents 574fb5d8 e5abda02
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment