]>
BookStack Code Mirror - bookstack/blobdiff - resources/js/components/editor-toolbox.js
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Standardised dropdown list item styles, Extracted page editor toolbar
[bookstack]
/
resources
/
js
/
components
/
editor-toolbox.js
diff --git
a/resources/js/components/editor-toolbox.js
b/resources/js/components/editor-toolbox.js
index 354bf0a86b3262f4a5e14a9e446ea87ee9405c65..3a1442d75150f043b821795d21e709f4578fcccc 100644
(file)
--- a/
resources/js/components/editor-toolbox.js
+++ b/
resources/js/components/editor-toolbox.js
@@
-41,7
+41,9
@@
class EditorToolbox {
if (cName === tabName) this.contentElements[i].style.display = 'block';
}
- if (openToolbox) this.elem.classList.add('open');
+ if (openToolbox && !this.elem.classList.contains('open')) {
+ this.toggle();
+ }
}
}