From 0fceeeb1085a4ea3ae0bd44c01727ea827469dde Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Sat, 22 Jun 2019 15:14:08 +0300 Subject: [PATCH] [SSE mobile] Display overlay, when opened modal window --- .../mobile/app/controller/Settings.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index 01e41502f..c1973f091 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -211,6 +211,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('settingscontainer:show'); this.onPageShow(this.getView('Settings')); },