Skip to content
Snippets Groups Projects
Commit b47dc9e2 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2843901 by tedbow, drpal: Settings tray should use toolbar models to close the toolbar items

parent cdb2ecd4
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,7 @@
* Close any active toolbar tray before entering edit mode.
*/
function closeToolbarTrays() {
$('#toolbar-bar')
.find('.toolbar-tab')
.not('.contextual-toolbar-tab')
.has('.toolbar-tray.is-active')
.find('.toolbar-item').trigger('click');
$(Drupal.toolbar.models.toolbarModel.get('activeTab')).trigger('click');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment