Fix sending filetype

This commit is contained in:
Julia Radzhabova 2021-08-09 19:09:59 +03:00
parent 92bb409c5a
commit 7dcbc69f1b
13 changed files with 0 additions and 13 deletions

View file

@ -102,7 +102,6 @@ define([
onDownloadUrl: function(url, fileType) {
if (this.isFromSelectRevision !== undefined) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.requestRestore(this.isFromSelectRevision, url, fileType);
}
this.isFromSelectRevision = undefined;

View file

@ -250,7 +250,6 @@ DE.ApplicationController = new(function(){
}
function onDownloadUrl(url, fileType) {
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}

View file

@ -411,7 +411,6 @@ define([
}
if (me.mode.canRequestSaveAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.requestSaveAs(url, defFileName, fileType);
} else {
me._saveCopyDlg = new Common.Views.SaveAsDlg({

View file

@ -2054,7 +2054,6 @@ define([
onDownloadUrl: function(url, fileType) {
if (this._state.isFromGatewayDownloadAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}
this._state.isFromGatewayDownloadAs = false;

View file

@ -579,7 +579,6 @@ define([
if (this.cmbMergeTo.getValue() != Asc.c_oAscFileType.HTML) {
var defFileName = me.defFileName + ((this.cmbMergeTo.getValue() == Asc.c_oAscFileType.PDF) ? '.pdf' : '.docx');
if (me.mode.canRequestSaveAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.requestSaveAs(url, defFileName, fileType);
} else {
me._mailMergeDlg = new Common.Views.SaveAsDlg({

View file

@ -689,7 +689,6 @@ class MainController extends Component {
onDownloadUrl (url, fileType) {
if (this._state.isFromGatewayDownloadAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}

View file

@ -226,7 +226,6 @@ PE.ApplicationController = new(function(){
}
function onDownloadUrl(url, fileType) {
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}

View file

@ -309,7 +309,6 @@ define([
}
if (me.mode.canRequestSaveAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.requestSaveAs(url, defFileName, fileType);
} else {
me._saveCopyDlg = new Common.Views.SaveAsDlg({

View file

@ -1703,7 +1703,6 @@ define([
onDownloadUrl: function(url, fileType) {
if (this._state.isFromGatewayDownloadAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}
this._state.isFromGatewayDownloadAs = false;

View file

@ -180,7 +180,6 @@ SSE.ApplicationController = new(function(){
}
function onDownloadUrl(url, fileType) {
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}

View file

@ -386,7 +386,6 @@ define([
}
if (me.mode.canRequestSaveAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.requestSaveAs(url, defFileName, fileType);
} else {
me._saveCopyDlg = new Common.Views.SaveAsDlg({

View file

@ -1995,7 +1995,6 @@ define([
onDownloadUrl: function(url, fileType) {
if (this._state.isFromGatewayDownloadAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}
this._state.isFromGatewayDownloadAs = false;

View file

@ -638,7 +638,6 @@ class MainController extends Component {
onDownloadUrl (url, fileType) {
if (this._state.isFromGatewayDownloadAs) {
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
Common.Gateway.downloadAs(url, fileType);
}