[DE][DE mobile] Fix adding footnotes

This commit is contained in:
Julia Radzhabova 2019-07-08 13:56:26 +03:00
parent d51f9be27d
commit 2fc833ecd3
2 changed files with 6 additions and 2 deletions

View file

@ -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);
},

View file

@ -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();
}
},