Commit af21b7eb authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Apply row/column size by pressing the Enter when size isn't changed.

parent ff39cf93
......@@ -104,7 +104,7 @@ define([
var $window = this.getChild();
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
this.spnSize.on('entervalue', _.bind(this.onEnterValue, this));
this.spnSize.on('entervalue', _.bind(this.onPrimary, this));
this.spnSize.on('change', _.bind(this.onChange, this));
this.spnSize.$el.find('input').focus();
},
......@@ -121,10 +121,6 @@ define([
this._handleInput(event.currentTarget.attributes['result'].value);
},
onEnterValue: function(event) {
this._handleInput('ok');
},
onChange: function () {
var val = this.spnSize.getNumberValue();
val = val / this.step; val = (val | val) * this.step;
......@@ -135,6 +131,10 @@ define([
return this.spnSize.getNumberValue();
},
onPrimary: function() {
this._handleInput('ok');
},
cancelButtonText: 'Cancel',
okButtonText: 'Ok',
txtMinText: 'The minimum value for this field is {0}',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment