[DE][DE mobile] Fix adding footnotes
This commit is contained in:
parent
d51f9be27d
commit
2fc833ecd3
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue