Merge branch 'release/v6.3.0' of https://github.com/ONLYOFFICE/web-apps into release/v6.3.0

This commit is contained in:
Maxim Kadushkin 2021-05-06 17:47:45 +03:00
commit 12cd63f48f
3 changed files with 38 additions and 25 deletions

View file

@ -146,6 +146,7 @@
border: none;
//.box-shadow(0 0 0 @scaled-one-px-value-ie @background-normal-ie);
//.box-shadow(0 0 0 @scaled-one-px-value @background-normal);
background-color: @canvas-content-background;
> div {
background-repeat: no-repeat;

View file

@ -1379,6 +1379,14 @@ define([
config.msg = this.errorStockChart;
break;
case Asc.c_oAscError.ID.MaxDataSeriesError:
config.msg = this.getApplication().getController('Toolbar').errorMaxRows;
break;
case Asc.c_oAscError.ID.ComboSeriesError:
config.msg = this.getApplication().getController('Toolbar').errorComboSeries;
break;
case Asc.c_oAscError.ID.DataRangeError:
config.msg = this.errorDataRange;
break;

View file

@ -1088,21 +1088,24 @@ define([
var ischartedit = ( seltype == Asc.c_oAscSelectionType.RangeChart || seltype == Asc.c_oAscSelectionType.RangeChartText);
props = me.api.asc_getChartObject(true); // don't lock chart object
if (props) {
(ischartedit) ? props.changeType(type) : props.putType(type);
if (ischartedit)
props.changeType(type);
else {
props.putType(type);
var range = props.getRange(),
isvalid = (!_.isEmpty(range)) ? me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, range, true, props.getInRows(), props.getType()) : Asc.c_oAscError.ID.No;
if (isvalid == Asc.c_oAscError.ID.No) {
!ischartedit && me.api.asc_addChartDrawingObject(props);
me.api.asc_addChartDrawingObject(props);
} else {
var msg = me.txtInvalidRange;
switch (isvalid) {
case isvalid == Asc.c_oAscError.ID.StockChartError:
case Asc.c_oAscError.ID.StockChartError:
msg = me.errorStockChart;
break;
case isvalid == Asc.c_oAscError.ID.MaxDataSeriesError:
case Asc.c_oAscError.ID.MaxDataSeriesError:
msg = me.errorMaxRows;
break;
case isvalid == Asc.c_oAscError.ID.ComboSeriesError:
case Asc.c_oAscError.ID.ComboSeriesError:
msg = me.errorComboSeries;
break;
}
@ -1118,6 +1121,7 @@ define([
}
}
}
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
},