Commit d02d6f9e authored by webchick's avatar webchick

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

parent 1c20c89b
......@@ -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