[DE] Fix Bug 47600
This commit is contained in:
parent
a33195a399
commit
aec56b6c15
|
@ -317,7 +317,9 @@ define([
|
||||||
})).show();
|
})).show();
|
||||||
break;
|
break;
|
||||||
case 'settings':
|
case 'settings':
|
||||||
var isEndNote = me.api.asc_IsCursorInEndnote();
|
var isEndNote = me.api.asc_IsCursorInEndnote(),
|
||||||
|
isFootNote = me.api.asc_IsCursorInFootnote();
|
||||||
|
isEndNote = (isEndNote || isFootNote) ? isEndNote : Common.Utils.InternalSettings.get("de-settings-note-last") || false;
|
||||||
(new DE.Views.NoteSettingsDialog({
|
(new DE.Views.NoteSettingsDialog({
|
||||||
api: me.api,
|
api: me.api,
|
||||||
handler: function (result, settings) {
|
handler: function (result, settings) {
|
||||||
|
@ -328,6 +330,9 @@ define([
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
settings.isEndNote ? me.api.asc_AddEndnote(settings.custom) : me.api.asc_AddFootnote(settings.custom);
|
settings.isEndNote ? me.api.asc_AddEndnote(settings.custom) : me.api.asc_AddFootnote(settings.custom);
|
||||||
}, 1);
|
}, 1);
|
||||||
|
if (result == 'insert' || result == 'apply') {
|
||||||
|
Common.Utils.InternalSettings.set("de-settings-note-last", settings.isEndNote);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue