From f33f7c28e9b959720682eb1f3a76f827ddcc04ac Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 5 Apr 2021 18:48:10 +0300 Subject: [PATCH] [SSE] Show active cell when import from text/csv --- apps/common/main/lib/view/OpenDialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 796ab4cfb..2e359e9cf 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -231,6 +231,8 @@ define([ validateOnBlur: false }); this.txtDestRange.on('button:click', _.bind(this.onSelectData, this)); + this.dataDestValid = this.api.asc_getActiveRangeStr(Asc.referenceType.A, true); + this.txtDestRange.setValue(this.dataDestValid); } this.onPrimary = function() { @@ -243,13 +245,15 @@ define([ show: function() { Common.UI.Window.prototype.show.apply(this, arguments); + var me = this; if (this.type == Common.Utils.importTextType.DRM) { - var me = this; setTimeout(function(){ me.inputPwd.cmpEl.find('input').focus(); if (me.validatePwd) me.inputPwd.checkValidate(); }, 500); + } else if (this.type == Common.Utils.importTextType.Data) { + setTimeout(function(){me.txtDestRange.focus();}, 500); } },