projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
574fb5d
)
core#1182 - revert crm.menubar.js changes
author
Jon Goldberg
<jon@megaphonetech.com>
Mon, 12 Aug 2019 16:38:28 +0000
(12:38 -0400)
committer
Jon Goldberg
<jon@megaphonetech.com>
Mon, 12 Aug 2019 16:41:11 +0000
(12:41 -0400)
js/crm.menubar.js
patch
|
blob
|
blame
|
history
diff --git
a/js/crm.menubar.js
b/js/crm.menubar.js
index bd42b8992f381d4619d80026fb1919fb7fd6331e..152a6e376e185de20a3318e0aee980a8c3aff961 100644
(file)
--- 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();
}