Fix sending filetype
This commit is contained in:
parent
92bb409c5a
commit
7dcbc69f1b
|
@ -102,7 +102,6 @@ define([
|
||||||
|
|
||||||
onDownloadUrl: function(url, fileType) {
|
onDownloadUrl: function(url, fileType) {
|
||||||
if (this.isFromSelectRevision !== undefined) {
|
if (this.isFromSelectRevision !== undefined) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.requestRestore(this.isFromSelectRevision, url, fileType);
|
Common.Gateway.requestRestore(this.isFromSelectRevision, url, fileType);
|
||||||
}
|
}
|
||||||
this.isFromSelectRevision = undefined;
|
this.isFromSelectRevision = undefined;
|
||||||
|
|
|
@ -250,7 +250,6 @@ DE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadUrl(url, fileType) {
|
function onDownloadUrl(url, fileType) {
|
||||||
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,6 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.mode.canRequestSaveAs) {
|
if (me.mode.canRequestSaveAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
||||||
} else {
|
} else {
|
||||||
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
||||||
|
|
|
@ -2054,7 +2054,6 @@ define([
|
||||||
|
|
||||||
onDownloadUrl: function(url, fileType) {
|
onDownloadUrl: function(url, fileType) {
|
||||||
if (this._state.isFromGatewayDownloadAs) {
|
if (this._state.isFromGatewayDownloadAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
this._state.isFromGatewayDownloadAs = false;
|
this._state.isFromGatewayDownloadAs = false;
|
||||||
|
|
|
@ -579,7 +579,6 @@ define([
|
||||||
if (this.cmbMergeTo.getValue() != Asc.c_oAscFileType.HTML) {
|
if (this.cmbMergeTo.getValue() != Asc.c_oAscFileType.HTML) {
|
||||||
var defFileName = me.defFileName + ((this.cmbMergeTo.getValue() == Asc.c_oAscFileType.PDF) ? '.pdf' : '.docx');
|
var defFileName = me.defFileName + ((this.cmbMergeTo.getValue() == Asc.c_oAscFileType.PDF) ? '.pdf' : '.docx');
|
||||||
if (me.mode.canRequestSaveAs) {
|
if (me.mode.canRequestSaveAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
||||||
} else {
|
} else {
|
||||||
me._mailMergeDlg = new Common.Views.SaveAsDlg({
|
me._mailMergeDlg = new Common.Views.SaveAsDlg({
|
||||||
|
|
|
@ -689,7 +689,6 @@ class MainController extends Component {
|
||||||
|
|
||||||
onDownloadUrl (url, fileType) {
|
onDownloadUrl (url, fileType) {
|
||||||
if (this._state.isFromGatewayDownloadAs) {
|
if (this._state.isFromGatewayDownloadAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,6 @@ PE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadUrl(url, fileType) {
|
function onDownloadUrl(url, fileType) {
|
||||||
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,6 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.mode.canRequestSaveAs) {
|
if (me.mode.canRequestSaveAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
||||||
} else {
|
} else {
|
||||||
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
||||||
|
|
|
@ -1703,7 +1703,6 @@ define([
|
||||||
|
|
||||||
onDownloadUrl: function(url, fileType) {
|
onDownloadUrl: function(url, fileType) {
|
||||||
if (this._state.isFromGatewayDownloadAs) {
|
if (this._state.isFromGatewayDownloadAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
this._state.isFromGatewayDownloadAs = false;
|
this._state.isFromGatewayDownloadAs = false;
|
||||||
|
|
|
@ -180,7 +180,6 @@ SSE.ApplicationController = new(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownloadUrl(url, fileType) {
|
function onDownloadUrl(url, fileType) {
|
||||||
fileType = (common.utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -386,7 +386,6 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.mode.canRequestSaveAs) {
|
if (me.mode.canRequestSaveAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
Common.Gateway.requestSaveAs(url, defFileName, fileType);
|
||||||
} else {
|
} else {
|
||||||
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
me._saveCopyDlg = new Common.Views.SaveAsDlg({
|
||||||
|
|
|
@ -1995,7 +1995,6 @@ define([
|
||||||
|
|
||||||
onDownloadUrl: function(url, fileType) {
|
onDownloadUrl: function(url, fileType) {
|
||||||
if (this._state.isFromGatewayDownloadAs) {
|
if (this._state.isFromGatewayDownloadAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
this._state.isFromGatewayDownloadAs = false;
|
this._state.isFromGatewayDownloadAs = false;
|
||||||
|
|
|
@ -638,7 +638,6 @@ class MainController extends Component {
|
||||||
|
|
||||||
onDownloadUrl (url, fileType) {
|
onDownloadUrl (url, fileType) {
|
||||||
if (this._state.isFromGatewayDownloadAs) {
|
if (this._state.isFromGatewayDownloadAs) {
|
||||||
fileType = (Common.Utils.getKeyByValue(Asc.c_oAscFileType, fileType) || '').toLowerCase();
|
|
||||||
Common.Gateway.downloadAs(url, fileType);
|
Common.Gateway.downloadAs(url, fileType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue