Commit 626c1f5d authored by Alexander Yuzhin's avatar Alexander Yuzhin

[mobile] Call asc_OnShowContextMenu on show settings view

parent 39516164
......@@ -261,7 +261,11 @@ define([
$layoutPages.prop('outerHTML') +
'</div>' +
'</div>'
)).on('close', function (e) {
)).on('opened', function () {
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function (e) {
mainView.showNavbar();
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
......@@ -293,6 +297,10 @@ define([
$overlay.addClass('modal-overlay-visible')
}
});
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () {
$overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible')
......
......@@ -261,7 +261,11 @@ define([
$layoutPages.prop('outerHTML') +
'</div>' +
'</div>'
)).on('close', function (e) {
)).on('opened', function () {
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function (e) {
mainView.showNavbar();
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
......@@ -294,6 +298,10 @@ define([
$overlay.addClass('modal-overlay-visible')
}
});
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () {
$overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible')
......
......@@ -262,7 +262,11 @@ define([
$layoutPages.prop('outerHTML') +
'</div>' +
'</div>'
)).on('close', function (e) {
)).on('opened', function () {
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function (e) {
mainView.showNavbar();
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:false});
}).on('closed', function () {
......@@ -270,7 +274,6 @@ define([
me.api.asc_OnHideContextMenu()
}
});
mainView.hideNavbar();
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:true});
} else {
......@@ -297,6 +300,10 @@ define([
$overlay.addClass('modal-overlay-visible')
}
});
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () {
$overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment