commit
c7d8aec49e
|
@ -358,9 +358,9 @@ define([
|
||||||
_onPrint: function(e) {
|
_onPrint: function(e) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
_.defer(function () {
|
_.delay(function () {
|
||||||
me.api.asc_Print();
|
me.api.asc_Print();
|
||||||
});
|
}, 300);
|
||||||
me.hideModal();
|
me.hideModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -393,9 +393,9 @@ define([
|
||||||
format = $(e.currentTarget).data('format');
|
format = $(e.currentTarget).data('format');
|
||||||
|
|
||||||
if (format) {
|
if (format) {
|
||||||
_.defer(function () {
|
_.delay(function () {
|
||||||
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||||
});
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
me.hideModal();
|
me.hideModal();
|
||||||
|
|
|
@ -528,11 +528,15 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onSwitch: function() {
|
onSwitch: function() {
|
||||||
this.chartSettings.switchRowCol();
|
var res = this.chartSettings.switchRowCol();
|
||||||
this.updateSeriesList(this.chartSettings.getSeries(), 0);
|
if (res === Asc.c_oAscError.ID.MaxDataSeriesError)
|
||||||
this.updateCategoryList(this.chartSettings.getCatValues());
|
Common.UI.warning({msg: this.errorMaxRows, maxwidth: 600});
|
||||||
this.updateRange();
|
else {
|
||||||
this.updateButtons();
|
this.updateSeriesList(this.chartSettings.getSeries(), 0);
|
||||||
|
this.updateCategoryList(this.chartSettings.getCatValues());
|
||||||
|
this.updateRange();
|
||||||
|
this.updateButtons();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
textTitle: 'Chart Data',
|
textTitle: 'Chart Data',
|
||||||
|
|
|
@ -675,9 +675,9 @@ define([
|
||||||
_onPrint: function(e) {
|
_onPrint: function(e) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
_.defer(function () {
|
_.delay(function () {
|
||||||
me.api.asc_Print();
|
me.api.asc_Print();
|
||||||
});
|
}, 300);
|
||||||
me.hideModal();
|
me.hideModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -699,9 +699,9 @@ define([
|
||||||
);
|
);
|
||||||
}, 50);
|
}, 50);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
_.delay(function () {
|
||||||
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||||
}, 50);
|
}, 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue