From 2fc833ecd35b2d4b785ebdb4d36bd0d7198e112d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Jul 2019 13:56:26 +0300 Subject: [PATCH] [DE][DE mobile] Fix adding footnotes --- apps/documenteditor/main/app/controller/Links.js | 4 +++- apps/documenteditor/mobile/app/controller/add/AddOther.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index 51f697cfca..1e034c149c 100644 --- a/apps/documenteditor/main/app/controller/Links.js +++ b/apps/documenteditor/main/app/controller/Links.js @@ -294,7 +294,9 @@ define([ if (settings) { me.api.asc_SetFootnoteProps(settings.props, settings.applyToAll); if (result == 'insert') - me.api.asc_AddFootnote(settings.custom); + setTimeout(function() { + me.api.asc_AddFootnote(settings.custom); + }, 1); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index 04ba5b122f..8b14782a02 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -162,7 +162,9 @@ define([ props.put_NumRestart(Asc.c_oAscFootnoteRestart.Continuous); if (me.api) { me.api.asc_SetFootnoteProps(props, false); - me.api.asc_AddFootnote(); + setTimeout(function() { + me.api.asc_AddFootnote(); + }, 1); DE.getController('AddContainer').hideModal(); } },