[SSE] Show active cell when import from text/csv

This commit is contained in:
Julia Radzhabova 2021-04-05 18:48:10 +03:00
parent 77cd81322c
commit f33f7c28e9

View file

@ -231,6 +231,8 @@ define([
validateOnBlur: false validateOnBlur: false
}); });
this.txtDestRange.on('button:click', _.bind(this.onSelectData, this)); 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() { this.onPrimary = function() {
@ -243,13 +245,15 @@ define([
show: function() { show: function() {
Common.UI.Window.prototype.show.apply(this, arguments); Common.UI.Window.prototype.show.apply(this, arguments);
var me = this;
if (this.type == Common.Utils.importTextType.DRM) { if (this.type == Common.Utils.importTextType.DRM) {
var me = this;
setTimeout(function(){ setTimeout(function(){
me.inputPwd.cmpEl.find('input').focus(); me.inputPwd.cmpEl.find('input').focus();
if (me.validatePwd) if (me.validatePwd)
me.inputPwd.checkValidate(); me.inputPwd.checkValidate();
}, 500); }, 500);
} else if (this.type == Common.Utils.importTextType.Data) {
setTimeout(function(){me.txtDestRange.focus();}, 500);
} }
}, },