[DE] Handle ConvertationOpenFormat error
This commit is contained in:
parent
d2e30f63e1
commit
142e295b70
|
@ -1983,21 +1983,15 @@ define([
|
||||||
config.msg = this.errorPasswordIsNotCorrect;
|
config.msg = this.errorPasswordIsNotCorrect;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.InconsistentOpenError:
|
case Asc.c_oAscError.ID.ConvertationOpenFormat:
|
||||||
errData = {
|
|
||||||
get_Value: function() {
|
|
||||||
return 'xlsx';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
config.maxwidth = 600;
|
config.maxwidth = 600;
|
||||||
var errvalue = errData ? errData.get_Value() : '';
|
if (errData === 'pdf')
|
||||||
if (errvalue === 'pdf')
|
|
||||||
config.msg = this.errorInconsistentExtPdf.replace('%1', this.document.fileType || '');
|
config.msg = this.errorInconsistentExtPdf.replace('%1', this.document.fileType || '');
|
||||||
else if (errvalue === 'docx')
|
else if (errData === 'docx')
|
||||||
config.msg = this.errorInconsistentExtDocx.replace('%1', this.document.fileType || '');
|
config.msg = this.errorInconsistentExtDocx.replace('%1', this.document.fileType || '');
|
||||||
else if (errvalue === 'xlsx')
|
else if (errData === 'xlsx')
|
||||||
config.msg = this.errorInconsistentExtXlsx.replace('%1', this.document.fileType || '');
|
config.msg = this.errorInconsistentExtXlsx.replace('%1', this.document.fileType || '');
|
||||||
else if (errvalue === 'pptx')
|
else if (errData === 'pptx')
|
||||||
config.msg = this.errorInconsistentExtPptx.replace('%1', this.document.fileType || '');
|
config.msg = this.errorInconsistentExtPptx.replace('%1', this.document.fileType || '');
|
||||||
else
|
else
|
||||||
config.msg = this.errorInconsistentExt;
|
config.msg = this.errorInconsistentExt;
|
||||||
|
|
Loading…
Reference in a new issue