[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) {
|
||||
if (this.api) {
|
||||
var properties = new Asc.CTableProp();
|
||||
properties.put_RowsInHeader((field.getValue()=='checked') ? 1 : 0 );
|
||||
properties.put_RowsInHeader(field.getValue()=='checked');
|
||||
this.api.tblApply(properties);
|
||||
}
|
||||
this.fireEvent('editcomplete', this);
|
||||
|
@ -562,10 +562,8 @@ define([
|
|||
|
||||
value = props.get_RowsInHeader();
|
||||
if ( this._state.RepeatRow!==value ) {
|
||||
if ( value !== null )
|
||||
this.chRepeatRow.setValue((value>0) ? 1 : 0, true);
|
||||
else
|
||||
this.chRepeatRow.setValue('indeterminate', true);
|
||||
this.chRepeatRow.setValue(!!value, true);
|
||||
this.chRepeatRow.setDisabled(value === null);
|
||||
this._state.RepeatRow=value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue