[SSE] Disabled adding sparklines and changing data/location range.
This commit is contained in:
parent
0df0720f02
commit
ceb5fb0a70
|
@ -335,35 +335,35 @@
|
||||||
<!--<div id="spark-dlg-radio-single" style="display: block;"></div>-->
|
<!--<div id="spark-dlg-radio-single" style="display: block;"></div>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
<table cols="2" style="width: 100%;">
|
<table cols="2" style="width: 100%;">
|
||||||
<tr>
|
<!--<tr>-->
|
||||||
<td colspan=2 >
|
<!--<td colspan=2 >-->
|
||||||
<label class="header"><%= scope.textDataRange %></label>
|
<!--<label class="header"><%= scope.textDataRange %></label>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
</tr>
|
<!--</tr>-->
|
||||||
<tr>
|
<!--<tr>-->
|
||||||
<td class="padding-small" width="200">
|
<!--<td class="padding-small" width="200">-->
|
||||||
<div id="spark-dlg-txt-range" class="input-row" style="margin-right: 10px;"></div>
|
<!--<div id="spark-dlg-txt-range" class="input-row" style="margin-right: 10px;"></div>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
<td class="padding-small" style="text-align: right;">
|
<!--<td class="padding-small" style="text-align: right;">-->
|
||||||
<button type="button" class="btn btn-text-default" id="spark-dlg-btn-data" style="min-width: 100px;"><%= scope.textSelectData %></button>
|
<!--<button type="button" class="btn btn-text-default" id="spark-dlg-btn-data" style="min-width: 100px;"><%= scope.textSelectData %></button>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
</tr>
|
<!--</tr>-->
|
||||||
<tr>
|
<!--<tr>-->
|
||||||
<td colspan=2 >
|
<!--<td colspan=2 >-->
|
||||||
<label class="header"><%= scope.textLocationRange %></label>
|
<!--<label class="header"><%= scope.textLocationRange %></label>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
</tr>
|
<!--</tr>-->
|
||||||
<tr>
|
<!--<tr>-->
|
||||||
<td class="padding-large" width="200">
|
<!--<td class="padding-large" width="200">-->
|
||||||
<div id="spark-dlg-txt-location" class="input-row" style="margin-right: 10px;"></div>
|
<!--<div id="spark-dlg-txt-location" class="input-row" style="margin-right: 10px;"></div>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
<td class="padding-large" style="text-align: right;">
|
<!--<td class="padding-large" style="text-align: right;">-->
|
||||||
<button type="button" class="btn btn-text-default" id="spark-dlg-btn-location-data" style="min-width: 100px;"><%= scope.textSelectData %></button>
|
<!--<button type="button" class="btn btn-text-default" id="spark-dlg-btn-location-data" style="min-width: 100px;"><%= scope.textSelectData %></button>-->
|
||||||
</td>
|
<!--</td>-->
|
||||||
</tr>
|
<!--</tr>-->
|
||||||
<tr>
|
<!--<tr>-->
|
||||||
<td colspan=2 class="padding-large"></td>
|
<!--<td colspan=2 class="padding-large"></td>-->
|
||||||
</tr>
|
<!--</tr>-->
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2 class="padding-small">
|
<td colspan=2 class="padding-small">
|
||||||
<label class="header"><%= scope.textEmptyCells %></label>
|
<label class="header"><%= scope.textEmptyCells %></label>
|
||||||
|
|
|
@ -844,7 +844,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
|
||||||
labelText: this.textSingle,
|
labelText: this.textSingle,
|
||||||
name: 'asc-radio-sparkline'
|
name: 'asc-radio-sparkline'
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
this.txtSparkDataRange = new Common.UI.InputField({
|
this.txtSparkDataRange = new Common.UI.InputField({
|
||||||
el : $('#spark-dlg-txt-range'),
|
el : $('#spark-dlg-txt-range'),
|
||||||
name : 'range',
|
name : 'range',
|
||||||
|
@ -872,6 +872,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
|
||||||
el: $('#spark-dlg-btn-location-data')
|
el: $('#spark-dlg-btn-location-data')
|
||||||
});
|
});
|
||||||
this.btnSelectLocationData.on('click', _.bind(this.onSelectLocationData, this));
|
this.btnSelectLocationData.on('click', _.bind(this.onSelectLocationData, this));
|
||||||
|
*/
|
||||||
|
|
||||||
this._arrEmptyCells = [
|
this._arrEmptyCells = [
|
||||||
{ value: Asc.c_oAscEDispBlanksAs.Gap, displayValue: this.textGaps },
|
{ value: Asc.c_oAscEDispBlanksAs.Gap, displayValue: this.textGaps },
|
||||||
|
@ -1402,6 +1403,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
|
||||||
this.spnSparkMinValue.setValue((props.asc_getManualMin() !== null) ? props.asc_getManualMin() : '', true);
|
this.spnSparkMinValue.setValue((props.asc_getManualMin() !== null) ? props.asc_getManualMin() : '', true);
|
||||||
this.spnSparkMaxValue.setValue((props.asc_getManualMax() !== null) ? props.asc_getManualMax() : '', true);
|
this.spnSparkMaxValue.setValue((props.asc_getManualMax() !== null) ? props.asc_getManualMax() : '', true);
|
||||||
|
|
||||||
|
/*
|
||||||
var value = props.asc_getDataRanges();
|
var value = props.asc_getDataRanges();
|
||||||
if (value && value.length==2) {
|
if (value && value.length==2) {
|
||||||
this.txtSparkDataRange.setValue((value[0]) ? value[0] : '');
|
this.txtSparkDataRange.setValue((value[0]) ? value[0] : '');
|
||||||
|
@ -1425,6 +1427,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
|
||||||
return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.textInvalidRange : true;
|
return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.textInvalidRange : true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
this._changedProps = new Asc.sparklineGroup();
|
this._changedProps = new Asc.sparklineGroup();
|
||||||
this._noApply = false;
|
this._noApply = false;
|
||||||
|
|
|
@ -1551,10 +1551,10 @@ define([
|
||||||
{ id: 'menu-chart-group-hbar', caption: me.textBar },
|
{ id: 'menu-chart-group-hbar', caption: me.textBar },
|
||||||
{ id: 'menu-chart-group-area', caption: me.textArea, inline: true },
|
{ id: 'menu-chart-group-area', caption: me.textArea, inline: true },
|
||||||
{ id: 'menu-chart-group-scatter', caption: me.textPoint, inline: true },
|
{ id: 'menu-chart-group-scatter', caption: me.textPoint, inline: true },
|
||||||
{ id: 'menu-chart-group-stock', caption: me.textStock, inline: true },
|
{ id: 'menu-chart-group-stock', caption: me.textStock, inline: true }
|
||||||
{ id: 'menu-chart-group-sparkcolumn', inline: true, headername: me.textSparks },
|
// ,{ id: 'menu-chart-group-sparkcolumn', inline: true, headername: me.textSparks },
|
||||||
{ id: 'menu-chart-group-sparkline', inline: true },
|
// { id: 'menu-chart-group-sparkline', inline: true },
|
||||||
{ id: 'menu-chart-group-sparkwin', inline: true }
|
// { id: 'menu-chart-group-sparkwin', inline: true }
|
||||||
]),
|
]),
|
||||||
store: new Common.UI.DataViewStore([
|
store: new Common.UI.DataViewStore([
|
||||||
{ group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, allowSelected: true, iconCls: 'column-normal', selected: true},
|
{ group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, allowSelected: true, iconCls: 'column-normal', selected: true},
|
||||||
|
@ -1581,10 +1581,10 @@ define([
|
||||||
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStacked, allowSelected: true, iconCls: 'area-stack'},
|
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStacked, allowSelected: true, iconCls: 'area-stack'},
|
||||||
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStackedPer, allowSelected: true, iconCls: 'area-pstack'},
|
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStackedPer, allowSelected: true, iconCls: 'area-pstack'},
|
||||||
{ group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatter, allowSelected: true, iconCls: 'point-normal'},
|
{ group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatter, allowSelected: true, iconCls: 'point-normal'},
|
||||||
{ group: 'menu-chart-group-stock', type: Asc.c_oAscChartTypeSettings.stock, allowSelected: true, iconCls: 'stock-normal'},
|
{ group: 'menu-chart-group-stock', type: Asc.c_oAscChartTypeSettings.stock, allowSelected: true, iconCls: 'stock-normal'}
|
||||||
{ group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: me.textColumnSpark},
|
// ,{ group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: me.textColumnSpark},
|
||||||
{ group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: me.textLineSpark},
|
// { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: me.textLineSpark},
|
||||||
{ group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: me.textWinLossSpark}
|
// { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: me.textWinLossSpark}
|
||||||
]),
|
]),
|
||||||
itemTemplate: _.template('<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>')
|
itemTemplate: _.template('<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>')
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue