From fca164082065e146e76bb7f4fce6755e670628b7 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Thu, 18 Jul 2019 13:35:35 +0300 Subject: [PATCH] [Common mobile] Fix bug with hide overlay --- .../mobile/lib/controller/Collaboration.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 22841217b..673092e46 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -163,6 +163,22 @@ define([ domCache: true }); + if (!Common.SharedSettings.get('phone')) { + this.picker = $$(modalView); + var $overlay = $('.modal-overlay'); + + $$(this.picker).on('opened', function () { + $overlay.on('removeClass', function () { + if (!$overlay.hasClass('modal-overlay-visible')) { + $overlay.addClass('modal-overlay-visible') + } + }); + }).on('close', function () { + $overlay.off('removeClass'); + $overlay.removeClass('modal-overlay-visible') + }); + } + Common.NotificationCenter.trigger('collaborationcontainer:show'); this.onPageShow(this.getView('Common.Views.Collaboration'));