[mobile] Call asc_OnHideContextMenu on hide settings view

This commit is contained in:
Alexander Yuzhin 2017-03-06 17:56:03 +03:00
parent 3fa4718772
commit 3951616490
3 changed files with 26 additions and 0 deletions

View file

@ -263,6 +263,10 @@ define([
'</div>' '</div>'
)).on('close', function (e) { )).on('close', function (e) {
mainView.showNavbar(); mainView.showNavbar();
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
me.api.asc_OnHideContextMenu()
}
}); });
mainView.hideNavbar(); mainView.hideNavbar();
} else { } else {
@ -292,6 +296,10 @@ define([
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $overlay.removeClass('modal-overlay-visible')
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
me.api.asc_OnHideContextMenu()
}
}); });
} }

View file

@ -263,7 +263,12 @@ define([
'</div>' '</div>'
)).on('close', function (e) { )).on('close', function (e) {
mainView.showNavbar(); mainView.showNavbar();
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
me.api.asc_OnHideContextMenu()
}
}); });
mainView.hideNavbar(); mainView.hideNavbar();
} else { } else {
me.picker = uiApp.popover( me.picker = uiApp.popover(
@ -292,6 +297,10 @@ define([
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $overlay.removeClass('modal-overlay-visible')
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
me.api.asc_OnHideContextMenu()
}
}); });
} }

View file

@ -265,7 +265,12 @@ define([
)).on('close', function (e) { )).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 () {
if (_.isFunction(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 {
@ -295,6 +300,10 @@ define([
}).on('close', function () { }).on('close', function () {
$overlay.off('removeClass'); $overlay.off('removeClass');
$overlay.removeClass('modal-overlay-visible') $overlay.removeClass('modal-overlay-visible')
}).on('closed', function () {
if (_.isFunction(me.api.asc_OnHideContextMenu)) {
me.api.asc_OnHideContextMenu()
}
}); });
} }