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:
290463a
)
Menubar - Use class instead of id for flexibility
author
Coleman Watts
<coleman@civicrm.org>
Thu, 18 Jul 2019 12:41:48 +0000
(08:41 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 18 Jul 2019 12:41:48 +0000
(08:41 -0400)
js/crm.menubar.js
patch
|
blob
|
blame
|
history
diff --git
a/js/crm.menubar.js
b/js/crm.menubar.js
index ed5eb920ee600ff5fea5c225bf2c26016f2a4d05..3dcc3f1de2e2bdb62f453c70cd3be44f7c55787d 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();
}