[DE-mobile] TableSettings: change RowsInHeader property.

This commit is contained in:
Julia Radzhabova 2018-02-07 14:30:47 +03:00
parent 69d8618bf7
commit 968ef37cda

View file

@ -209,7 +209,11 @@ define([
}, },
_initTableOptionsView: function() { _initTableOptionsView: function() {
$('#table-option-repeatasheader input').prop('checked', _tableObject.get_RowsInHeader()); $('#table-option-repeatasheader input').prop('checked', !!_tableObject.get_RowsInHeader());
if (_tableObject.get_RowsInHeader() === null)
$('#table-option-repeatasheader').addClass('disabled');
else
$('#table-option-repeatasheader').removeClass('disabled');
$('#table-option-resizetofit input').prop('checked', _tableObject.get_TableLayout()==Asc.c_oAscTableLayout.AutoFit); $('#table-option-resizetofit input').prop('checked', _tableObject.get_TableLayout()==Asc.c_oAscTableLayout.AutoFit);
var margins = _tableObject.get_CellMargins(); var margins = _tableObject.get_CellMargins();
@ -470,7 +474,7 @@ define([
$target = $(e.currentTarget), $target = $(e.currentTarget),
properties = new Asc.CTableProp(); properties = new Asc.CTableProp();
properties.put_RowsInHeader($target.is(':checked') ? 1 : 0); properties.put_RowsInHeader($target.is(':checked'));
me.api.tblApply(properties); me.api.tblApply(properties);
}, },