Fix Bug 47077

This commit is contained in:
Julia Radzhabova 2020-10-26 15:06:05 +03:00
parent a48997fee4
commit fb08058d2a
4 changed files with 4 additions and 14 deletions

View file

@ -123,12 +123,7 @@ define([
var size = picker.value;
if (me.api) {
me.api.put_Table(parseInt(size[0]), parseInt(size[1]));
var properties = new Asc.CTableProp();
properties.put_TableStyle(type);
me.api.tblApply(properties);
me.api.put_Table(parseInt(size[0]), parseInt(size[1]), type.toString());
}
}
}

View file

@ -598,7 +598,7 @@ define([
$('#edit-table-styles .table-styles div').removeClass('active');
$target.addClass('active');
properties.put_TableStyle(type);
properties.put_TableStyle(type.toString());
me.api.tblApply(properties);
},

View file

@ -104,12 +104,7 @@ define([
var size = picker.value;
if (me.api) {
me.api.put_Table(parseInt(size[0]), parseInt(size[1]));
var properties = new Asc.CTableProp();
properties.put_TableStyle(type);
me.api.tblApply(properties);
me.api.put_Table(parseInt(size[0]), parseInt(size[1]), undefined, type.toString());
}
}
}

View file

@ -442,7 +442,7 @@ define([
$('#edit-table-styles .table-styles div').removeClass('active');
$target.addClass('active');
properties.put_TableStyle(type);
properties.put_TableStyle(type.toString());
me.api.tblApply(properties);
},