MDL-41238 atto - fixing autoclose of style menu for firefox

This commit is contained in:
Jason Fowler
2013-09-12 13:28:18 +08:00
committed by Damyon Wiese
parent c4012e7e82
commit c1f10ffb24
4 changed files with 4 additions and 4 deletions
@@ -64,7 +64,7 @@ M.editor_atto = M.editor_atto || {
menu.detach('clickoutside');
} else {
menu.on('clickoutside', function(ev) {
if (ev.target.ancestor() !== this) {
if ((ev.target.ancestor() !== this) && (ev.target !== this)) {
if (overlay.get('visible')) {
menu.detach('clickoutside');
overlay.hide();
File diff suppressed because one or more lines are too long
@@ -64,7 +64,7 @@ M.editor_atto = M.editor_atto || {
menu.detach('clickoutside');
} else {
menu.on('clickoutside', function(ev) {
if (ev.target.ancestor() !== this) {
if ((ev.target.ancestor() !== this) && (ev.target !== this)) {
if (overlay.get('visible')) {
menu.detach('clickoutside');
overlay.hide();
+1 -1
View File
@@ -62,7 +62,7 @@ M.editor_atto = M.editor_atto || {
menu.detach('clickoutside');
} else {
menu.on('clickoutside', function(ev) {
if (ev.target.ancestor() !== this) {
if ((ev.target.ancestor() !== this) && (ev.target !== this)) {
if (overlay.get('visible')) {
menu.detach('clickoutside');
overlay.hide();