diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index 51f697cfc..1e034c149 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 04ba5b122..8b14782a0 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(); } },