From 261236aedc7111775533cf05bbdf361d823a0ce3 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 9 Sep 2022 12:35:05 +0300 Subject: [PATCH] [DE] Move to next change after accept/reject from toolbar --- apps/common/main/lib/controller/ReviewChanges.js | 4 ++-- apps/documenteditor/main/app/controller/DocumentHolder.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/common/main/lib/controller/ReviewChanges.js b/apps/common/main/lib/controller/ReviewChanges.js index 8edbb9338..9cd921188 100644 --- a/apps/common/main/lib/controller/ReviewChanges.js +++ b/apps/common/main/lib/controller/ReviewChanges.js @@ -550,7 +550,7 @@ define([ if (item.value === 'all') { this.api.asc_AcceptAllChanges(); } else { - this.api.asc_AcceptChangesBySelection(); + this.api.asc_AcceptChangesBySelection(true); // accept and move to the next change } } else { this.api.asc_AcceptChanges(menu); @@ -565,7 +565,7 @@ define([ if (item.value === 'all') { this.api.asc_RejectAllChanges(); } else { - this.api.asc_RejectChangesBySelection(); + this.api.asc_RejectChangesBySelection(true); // reject and move to the next change } } else { this.api.asc_RejectChanges(menu); diff --git a/apps/documenteditor/main/app/controller/DocumentHolder.js b/apps/documenteditor/main/app/controller/DocumentHolder.js index 0064a0263..7b7a3d05e 100644 --- a/apps/documenteditor/main/app/controller/DocumentHolder.js +++ b/apps/documenteditor/main/app/controller/DocumentHolder.js @@ -1772,9 +1772,9 @@ define([ onAcceptRejectChange: function(item, e) { if (this.api) { if (item.value == 'accept') - this.api.asc_AcceptChangesBySelection(); + this.api.asc_AcceptChangesBySelection(false); else if (item.value == 'reject') - this.api.asc_RejectChangesBySelection(); + this.api.asc_RejectChangesBySelection(false); } this.editComplete(); },