core#1182 - revert crm.menubar.js changes
authorJon Goldberg <jon@megaphonetech.com>
Mon, 12 Aug 2019 16:38:28 +0000 (12:38 -0400)
committerJon Goldberg <jon@megaphonetech.com>
Mon, 12 Aug 2019 16:41:11 +0000 (12:41 -0400)
js/crm.menubar.js

index bd42b8992f381d4619d80026fb1919fb7fd6331e..152a6e376e185de20a3318e0aee980a8c3aff961 100644 (file)
 
       // 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();
                 }