Remove focus class from toolbar More when user clicks somewhere else on the page

This commit is contained in:
Nathan Gray 2016-01-25 21:20:28 +00:00
parent 5f5baa6686
commit 2a88ce69bd

View File

@ -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');
});
}
},