MDL-41238 atto - fixing autoclose of style menu for firefox
This commit is contained in:
committed by
Damyon Wiese
parent
c4012e7e82
commit
c1f10ffb24
+1
-1
@@ -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
File diff suppressed because one or more lines are too long
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user