[SSE mobile] Display overlay, when opened modal window
This commit is contained in:
parent
9def9977be
commit
0fceeeb108
|
@ -211,6 +211,22 @@ define([
|
||||||
domCache: true
|
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');
|
Common.NotificationCenter.trigger('settingscontainer:show');
|
||||||
this.onPageShow(this.getView('Settings'));
|
this.onPageShow(this.getView('Settings'));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue