Refactoring

This commit is contained in:
Julia Radzhabova 2020-12-08 15:29:05 +03:00
parent 52742b6d54
commit 42a14bf6d0
2 changed files with 1 additions and 67 deletions

View file

@ -24,23 +24,12 @@
<div class="separator horizontal"></div> <div class="separator horizontal"></div>
</td> </td>
</tr> </tr>
<!--<tr>-->
<!--<td class="padding-small">-->
<!--<label class="header"><%= scope.textType %></label>-->
<!--<div id="chart-button-type" style=""></div>-->
<!--</td>-->
<!--</tr>-->
<tr class="not-combined"> <tr class="not-combined">
<td class="padding-large"> <td class="padding-large">
<label class="header" style=""><%= scope.textStyle %></label> <label class="header" style=""><%= scope.textStyle %></label>
<div class="" id="chart-combo-style" style="width: 100%;"></div> <div class="" id="chart-combo-style" style="width: 100%;"></div>
</td> </td>
</tr> </tr>
<!--<tr>-->
<!--<td class="padding-small">-->
<!--<div class="separator horizontal"></div>-->
<!--</td>-->
<!--</tr>-->
<tr> <tr>
<td class="padding-small"> <td class="padding-small">
<div id="chart-btn-change-type" style="width:100%;"></div> <div id="chart-btn-change-type" style="width:100%;"></div>

View file

@ -591,32 +591,6 @@ define([
createDelayedControls: function() { createDelayedControls: function() {
var me = this; var me = this;
// charts
// this.btnChartType = new Common.UI.Button({
// cls : 'btn-large-dataview',
// iconCls : 'svgicon chart-bar-normal',
// menu : new Common.UI.Menu({
// style: 'width: 364px; padding-top: 12px;',
// items: [
// { template: _.template('<div id="id-chart-menu-type" class="menu-insertchart" style="margin: 5px 5px 5px 10px;"></div>') }
// ]
// })
// });
//
// this.btnChartType.on('render:after', function(btn) {
// me.mnuChartTypePicker = new Common.UI.DataView({
// el: $('#id-chart-menu-type'),
// parentMenu: btn.menu,
// restoreHeight: 421,
// groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()),
// store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()),
// itemTemplate: _.template('<div id="<%= id %>" class="item-chartlist"><svg width="40" height="40" class=\"icon\"><use xlink:href=\"#chart-<%= iconCls %>\"></use></svg></div>')
// });
// });
// this.btnChartType.render($('#chart-button-type'));
// this.mnuChartTypePicker.on('item:click', _.bind(this.onSelectType, this, this.btnChartType));
// this.lockedControls.push(this.btnChartType);
this.spnWidth = new Common.UI.MetricSpinner({ this.spnWidth = new Common.UI.MetricSpinner({
el: $('#chart-spin-width'), el: $('#chart-spin-width'),
step: .1, step: .1,
@ -964,35 +938,6 @@ define([
} }
}, },
// onSelectType: function(btn, picker, itemView, record) {
// if (this._noApply) return;
//
// var rawData = {},
// isPickerSelect = _.isFunction(record.toJSON);
//
// if (isPickerSelect){
// if (record.get('selected')) {
// rawData = record.toJSON();
// } else {
// // record deselected
// return;
// }
// } else {
// rawData = record;
// }
//
// // this.btnChartType.setIconCls('svgicon ' + 'chart-' + rawData.iconCls);
// this._state.ChartType = -1;
//
// if (this.api && !this._noApply && this.chartProps) {
// var props = new Asc.asc_CImgProperty();
// this.chartProps.changeType(rawData.type);
// props.asc_putChartProperties(this.chartProps);
// this.api.asc_setGraphicObjectProps(props);
// }
// Common.NotificationCenter.trigger('edit:complete', this);
// },
onSelectStyle: function(combo, record) { onSelectStyle: function(combo, record) {
if (this._noApply) return; if (this._noApply) return;