mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 03:19:32 +08:00
For bug 75106
This commit is contained in:
@ -2362,7 +2362,7 @@ define([], function () {
|
||||
};
|
||||
|
||||
dh.onNewPage = function(item) {
|
||||
this.api && this.api.asc_AddPage(item.value);
|
||||
this.api && this.api.asc_AddPage(item.value ? Math.min.apply(null, this.api.getSelectedPages()) : Math.max.apply(null, this.api.getSelectedPages())+1);
|
||||
|
||||
Common.NotificationCenter.trigger('edit:complete', this.documentHolder);
|
||||
};
|
||||
|
||||
@ -595,7 +595,7 @@ define([
|
||||
},
|
||||
|
||||
onAddPage: function(before) {
|
||||
this.api && this.api.asc_AddPage(!!before);
|
||||
this.api && this.api.asc_AddPage(this.api.getCurrentPage() + (before ? 0 : 1) );
|
||||
},
|
||||
/*
|
||||
mouseenterSmartArt: function (groupName, menu) {
|
||||
|
||||
Reference in New Issue
Block a user