Commit 39516164 authored by Alexander Yuzhin's avatar Alexander Yuzhin

[mobile] Call asc_OnHideContextMenu on hide settings view

parent 3fa47187
...@@ -263,6 +263,10 @@ define([ ...@@ -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([ ...@@ -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()
}
}); });
} }
......
...@@ -263,7 +263,12 @@ define([ ...@@ -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([ ...@@ -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()
}
}); });
} }
......
...@@ -265,7 +265,12 @@ define([ ...@@ -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([ ...@@ -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()
}
}); });
} }
......
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