Refactoring
This commit is contained in:
parent
7d25b2c5a0
commit
59f795f866
|
@ -80,8 +80,7 @@ define([
|
||||||
render: function() {
|
render: function() {
|
||||||
Common.UI.Window.prototype.render.call(this);
|
Common.UI.Window.prototype.render.call(this);
|
||||||
|
|
||||||
var $window = this.getChild(),
|
var $window = this.getChild();
|
||||||
me = this;
|
|
||||||
|
|
||||||
this.rbPara = new Common.UI.RadioBox({
|
this.rbPara = new Common.UI.RadioBox({
|
||||||
el: $window.find('#id-table-text-radio-para'),
|
el: $window.find('#id-table-text-radio-para'),
|
||||||
|
@ -118,16 +117,8 @@ define([
|
||||||
maxLength: 1,
|
maxLength: 1,
|
||||||
validateOnChange: true,
|
validateOnChange: true,
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
value: '-'
|
value: '-',
|
||||||
}).on ('changing', function(input, newValue) {
|
disabled: true
|
||||||
if (me.props && newValue) {
|
|
||||||
me.props.put_SeparatorType(3, true);
|
|
||||||
var size = me.props.put_Separator(newValue.charCodeAt(0), true);
|
|
||||||
if (size) {
|
|
||||||
me.spnColumns.setValue(size.cols, true);
|
|
||||||
me.spnRows.setValue(size.rows, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chNested = new Common.UI.CheckBox({
|
this.chNested = new Common.UI.CheckBox({
|
||||||
|
@ -135,8 +126,7 @@ define([
|
||||||
labelText: this.textNested,
|
labelText: this.textNested,
|
||||||
value: true,
|
value: true,
|
||||||
disabled: true
|
disabled: true
|
||||||
}).on('change', _.bind(function(field, newValue, oldValue, eOpts){
|
});
|
||||||
}, this));
|
|
||||||
|
|
||||||
this.getChild().find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
this.getChild().find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
||||||
},
|
},
|
||||||
|
|
|
@ -182,7 +182,7 @@ define([
|
||||||
this.spnWidth = new Common.UI.MetricSpinner({
|
this.spnWidth = new Common.UI.MetricSpinner({
|
||||||
el: $window.find('#id-text-table-spn-fixed'),
|
el: $window.find('#id-text-table-spn-fixed'),
|
||||||
step: 0.1,
|
step: 0.1,
|
||||||
width: 64,
|
width: 80,
|
||||||
defaultUnit : 'cm',
|
defaultUnit : 'cm',
|
||||||
value: 'Auto',
|
value: 'Auto',
|
||||||
autoText : this.txtAutoText,
|
autoText : this.txtAutoText,
|
||||||
|
|
Loading…
Reference in a new issue