From 935107da6a1e025b7d4329e9a53fcf99133731dd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 31 Aug 2020 17:13:07 +0300 Subject: [PATCH 1/2] [SSE] Fix Bug 46403 --- apps/common/main/lib/component/Window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js index e9dd88e61..ed374b246 100644 --- a/apps/common/main/lib/component/Window.js +++ b/apps/common/main/lib/component/Window.js @@ -803,7 +803,7 @@ define([ } } - Common.NotificationCenter.trigger('modal:close', this, hide_mask); + Common.NotificationCenter.trigger('modal:close', this, hide_mask && (parseInt(mask.attr('counter'))<1)); } this.$window.remove(); @@ -843,7 +843,7 @@ define([ } } } - Common.NotificationCenter.trigger('modal:hide', this, hide_mask); + Common.NotificationCenter.trigger('modal:hide', this, hide_mask && (parseInt(mask.attr('counter'))<1)); } this.$window.hide(); this.$window.removeClass('notransform'); From c1820b5344ddbc4ef9595d9a38c76fc5ec5bbb2d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 31 Aug 2020 17:14:01 +0300 Subject: [PATCH 2/2] [Common] Fix window mask (Bug 46403) --- apps/common/main/lib/component/Window.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js index ed374b246..1c452056b 100644 --- a/apps/common/main/lib/component/Window.js +++ b/apps/common/main/lib/component/Window.js @@ -693,13 +693,12 @@ define([ mask.attr('counter', parseInt(mask.attr('counter'))+1); mask.show(); } else { - var opacity = mask.css('opacity'); mask.css('opacity', 0); mask.attr('counter', parseInt(mask.attr('counter'))+1); mask.show(); setTimeout(function () { - mask.css(_getTransformation(opacity)); + mask.css(_getTransformation('0.2')); }, 1); } @@ -785,12 +784,11 @@ define([ if ( hide_mask ) { if (this.options.animate !== false) { - var opacity = mask.css('opacity'); mask.css(_getTransformation(0)); setTimeout(function () { - mask.css('opacity', opacity); if (parseInt(mask.attr('counter'))<1) { + mask.css('opacity', '0.2'); mask.hide(); mask.attr('counter', 0); } @@ -826,12 +824,11 @@ define([ if ( hide_mask ) { if (this.options.animate !== false) { - var opacity = mask.css('opacity'); mask.css(_getTransformation(0)); setTimeout(function () { - mask.css('opacity', opacity); if (parseInt(mask.attr('counter'))<1) { + mask.css('opacity', '0.2'); mask.hide(); mask.attr('counter', 0); }