Skip to content

Commit

Permalink
[se] Add confirm action const
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Aug 1, 2023
1 parent e5e6955 commit 0e99669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cell/model/HeaderFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ function (window, undefined) {
if (bSectionContainsPictures) {
//confirm dialog
//replace/keep options
t.api.handlers.trigger("asc_onConfirmAction", Asc.c_oAscConfirm.ConfirmReplaceRange, function (can) {
t.api.handlers.trigger("asc_onConfirmAction", Asc.c_oAscConfirm.ConfirmReplaceHeaderFooterPicture, function (can) {
if (can) {
showFileDialog();
}
Expand Down
4 changes: 3 additions & 1 deletion common/commonDefines.js
Original file line number Diff line number Diff line change
Expand Up @@ -3696,7 +3696,8 @@ window.AscCommon.g_cIsBeta = "false";
ConfirmReplaceFormulaInTable: 2,
ConfirmChangeProtectRange: 3,
ConfirmMaxChangesSize: 4,
ConfirmAddCellWatches: 5
ConfirmAddCellWatches: 5,
ConfirmReplaceHeaderFooterPicture: 6
};


Expand Down Expand Up @@ -5719,6 +5720,7 @@ window.AscCommon.g_cIsBeta = "false";
prot['ConfirmChangeProtectRange'] = prot.ConfirmChangeProtectRange;
prot['ConfirmMaxChangesSize'] = prot.ConfirmMaxChangesSize;
prot['ConfirmAddCellWatches'] = prot.ConfirmAddCellWatches;
prot['ConfirmReplaceHeaderFooterPicture'] = prot.ConfirmReplaceHeaderFooterPicture;

window['Asc'].c_oAscSmartArtSections = c_oAscSmartArtSections;

Expand Down

0 comments on commit 0e99669

Please sign in to comment.