From 2a88ce69bd5025add0644771500d81b1db80ff90 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 Jan 2016 21:20:28 +0000 Subject: [PATCH] Remove focus class from toolbar More when user clicks somewhere else on the page --- etemplate/js/et2_widget_toolbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index 30133ed31b..34585edf57 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -431,6 +431,8 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], $j('html').on('click.outsideOfMenu', function (event){ $j(menubox).accordion( "option", "active", 2); $j(this).unbind(event); + // Remove the focus class, user clicked elsewhere + $j(menubox).children().removeClass('ui-state-focus'); }); } },