[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') +
|
$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([
|
||||||
$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([
|
||||||
$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([
|
||||||
$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([
|
||||||
$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([
|
||||||
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([
|
||||||
$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')
|
||||||
|
|
Loading…
Reference in a new issue