Commit b47dc9e2 authored by webchick's avatar webchick
Browse files

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

parent cdb2ecd4
......@@ -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');
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment