[DE] TableSettings: change RowsInHeader property.
This commit is contained in:
parent
1694178caa
commit
8d85895db0
|
@ -141,7 +141,7 @@ define([
|
||||||
onCheckRepeatRowChange: function(field, newValue, oldValue, eOpts) {
|
onCheckRepeatRowChange: function(field, newValue, oldValue, eOpts) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var properties = new Asc.CTableProp();
|
var properties = new Asc.CTableProp();
|
||||||
properties.put_RowsInHeader((field.getValue()=='checked') ? 1 : 0 );
|
properties.put_RowsInHeader(field.getValue()=='checked');
|
||||||
this.api.tblApply(properties);
|
this.api.tblApply(properties);
|
||||||
}
|
}
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
|
@ -562,10 +562,8 @@ define([
|
||||||
|
|
||||||
value = props.get_RowsInHeader();
|
value = props.get_RowsInHeader();
|
||||||
if ( this._state.RepeatRow!==value ) {
|
if ( this._state.RepeatRow!==value ) {
|
||||||
if ( value !== null )
|
this.chRepeatRow.setValue(!!value, true);
|
||||||
this.chRepeatRow.setValue((value>0) ? 1 : 0, true);
|
this.chRepeatRow.setDisabled(value === null);
|
||||||
else
|
|
||||||
this.chRepeatRow.setValue('indeterminate', true);
|
|
||||||
this._state.RepeatRow=value;
|
this._state.RepeatRow=value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue