From 3d549e1bdfc2f8a2870541a626901a7f33bb459e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 17 Jan 2017 21:42:00 +0300 Subject: [PATCH] [DE] Set focus to document after Prev/Next footnotes buttons are pressed. --- apps/documenteditor/main/app/controller/Toolbar.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 6a1a5152e..f10305bc2 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2044,14 +2044,20 @@ define([ if (this.api) this.api.asc_GotoFootnote(false); - Common.NotificationCenter.trigger('edit:complete', this.toolbar); + var me = this; + setTimeout(function() { + Common.NotificationCenter.trigger('edit:complete', me.toolbar); + }, 50); }, onFootnoteNextClick: function(btn) { if (this.api) this.api.asc_GotoFootnote(true); - Common.NotificationCenter.trigger('edit:complete', this.toolbar); + var me = this; + setTimeout(function() { + Common.NotificationCenter.trigger('edit:complete', me.toolbar); + }, 50); }, _clearBullets: function() {