[mobile] Call asc_OnShowContextMenu on show settings view
This commit is contained in:
parent
3951616490
commit
626c1f5dd9
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue