From 3951616490799355af1d8b22137f9ce098157074 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 6 Mar 2017 17:56:03 +0300 Subject: [PATCH] [mobile] Call asc_OnHideContextMenu on hide settings view --- .../mobile/app/controller/edit/EditContainer.js | 8 ++++++++ .../mobile/app/controller/edit/EditContainer.js | 9 +++++++++ .../mobile/app/controller/edit/EditContainer.js | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/apps/documenteditor/mobile/app/controller/edit/EditContainer.js b/apps/documenteditor/mobile/app/controller/edit/EditContainer.js index 72915429b..fc9737856 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditContainer.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditContainer.js @@ -263,6 +263,10 @@ define([ '' )).on('close', function (e) { mainView.showNavbar(); + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); mainView.hideNavbar(); } else { @@ -292,6 +296,10 @@ define([ }).on('close', function () { $overlay.off('removeClass'); $overlay.removeClass('modal-overlay-visible') + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); } diff --git a/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js b/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js index 6f45827dc..b7ede5c9e 100644 --- a/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js +++ b/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js @@ -263,7 +263,12 @@ define([ '' )).on('close', function (e) { mainView.showNavbar(); + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); + mainView.hideNavbar(); } else { me.picker = uiApp.popover( @@ -292,6 +297,10 @@ define([ }).on('close', function () { $overlay.off('removeClass'); $overlay.removeClass('modal-overlay-visible') + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); } diff --git a/apps/spreadsheeteditor/mobile/app/controller/edit/EditContainer.js b/apps/spreadsheeteditor/mobile/app/controller/edit/EditContainer.js index 1b3017d71..c7974cd2a 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/edit/EditContainer.js +++ b/apps/spreadsheeteditor/mobile/app/controller/edit/EditContainer.js @@ -265,7 +265,12 @@ define([ )).on('close', function (e) { mainView.showNavbar(); Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:false}); + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); + mainView.hideNavbar(); Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:true}); } else { @@ -295,6 +300,10 @@ define([ }).on('close', function () { $overlay.off('removeClass'); $overlay.removeClass('modal-overlay-visible') + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } }); }