Merge pull request #588 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2020-11-24 12:31:05 +03:00 committed by GitHub
commit c7d8aec49e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 13 deletions

View file

@ -358,9 +358,9 @@ define([
_onPrint: function(e) {
var me = this;
_.defer(function () {
_.delay(function () {
me.api.asc_Print();
});
}, 300);
me.hideModal();
},
@ -393,9 +393,9 @@ define([
format = $(e.currentTarget).data('format');
if (format) {
_.defer(function () {
_.delay(function () {
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
});
}, 300);
}
me.hideModal();

View file

@ -528,11 +528,15 @@ define([
},
onSwitch: function() {
this.chartSettings.switchRowCol();
this.updateSeriesList(this.chartSettings.getSeries(), 0);
this.updateCategoryList(this.chartSettings.getCatValues());
this.updateRange();
this.updateButtons();
var res = this.chartSettings.switchRowCol();
if (res === Asc.c_oAscError.ID.MaxDataSeriesError)
Common.UI.warning({msg: this.errorMaxRows, maxwidth: 600});
else {
this.updateSeriesList(this.chartSettings.getSeries(), 0);
this.updateCategoryList(this.chartSettings.getCatValues());
this.updateRange();
this.updateButtons();
}
},
textTitle: 'Chart Data',

View file

@ -675,9 +675,9 @@ define([
_onPrint: function(e) {
var me = this;
_.defer(function () {
_.delay(function () {
me.api.asc_Print();
});
}, 300);
me.hideModal();
},
@ -699,9 +699,9 @@ define([
);
}, 50);
} else {
setTimeout(function () {
_.delay(function () {
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
}, 50);
}, 300);
}
}
},