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([ ...@@ -261,7 +261,11 @@ define([
$layoutPages.prop('outerHTML') + $layoutPages.prop('outerHTML') +
'</div>' + '</div>' +
'</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(); mainView.showNavbar();
}).on('closed', function () { }).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) { if (_.isFunction(me.api.asc_OnHideContextMenu)) {
...@@ -293,6 +297,10 @@ define([ ...@@ -293,6 +297,10 @@ define([
$overlay.addClass('modal-overlay-visible') $overlay.addClass('modal-overlay-visible')
} }
}); });
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $overlay.removeClass('modal-overlay-visible')
......
...@@ -261,7 +261,11 @@ define([ ...@@ -261,7 +261,11 @@ define([
$layoutPages.prop('outerHTML') + $layoutPages.prop('outerHTML') +
'</div>' + '</div>' +
'</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(); mainView.showNavbar();
}).on('closed', function () { }).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) { if (_.isFunction(me.api.asc_OnHideContextMenu)) {
...@@ -294,6 +298,10 @@ define([ ...@@ -294,6 +298,10 @@ define([
$overlay.addClass('modal-overlay-visible') $overlay.addClass('modal-overlay-visible')
} }
}); });
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $overlay.removeClass('modal-overlay-visible')
......
...@@ -262,7 +262,11 @@ define([ ...@@ -262,7 +262,11 @@ define([
$layoutPages.prop('outerHTML') + $layoutPages.prop('outerHTML') +
'</div>' + '</div>' +
'</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(); mainView.showNavbar();
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:false}); Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:false});
}).on('closed', function () { }).on('closed', function () {
...@@ -270,7 +274,6 @@ define([ ...@@ -270,7 +274,6 @@ define([
me.api.asc_OnHideContextMenu() me.api.asc_OnHideContextMenu()
} }
}); });
mainView.hideNavbar(); mainView.hideNavbar();
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:true}); Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:true});
} else { } else {
...@@ -297,6 +300,10 @@ define([ ...@@ -297,6 +300,10 @@ define([
$overlay.addClass('modal-overlay-visible') $overlay.addClass('modal-overlay-visible')
} }
}); });
if (_.isFunction(me.api.asc_OnShowContextMenu)) {
me.api.asc_OnShowContextMenu()
}
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $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