diff --git a/apps/documenteditor/main/app/view/TableSettings.js b/apps/documenteditor/main/app/view/TableSettings.js index ee04179a0..001ac34f0 100644 --- a/apps/documenteditor/main/app/view/TableSettings.js +++ b/apps/documenteditor/main/app/view/TableSettings.js @@ -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; } }