mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 06:29:46 +08:00
[PDF] Fix saving pdf-form
This commit is contained in:
@ -105,7 +105,7 @@ define([
|
||||
|
||||
render: function() {
|
||||
if (/^pdf$/.test(this.fileType)) {
|
||||
this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf
|
||||
!(this.mode && this.mode.isForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf
|
||||
this.formats[1].splice(1, 1); // remove pdfa
|
||||
} else if (/^xps|oxps$/.test(this.fileType)) {
|
||||
this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: ''}); // original xps/oxps
|
||||
@ -223,7 +223,7 @@ define([
|
||||
|
||||
render: function() {
|
||||
if (/^pdf$/.test(this.fileType)) {
|
||||
this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf
|
||||
!(this.mode && this.mode.isForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf
|
||||
this.formats[1].splice(1, 1); // remove pdfa
|
||||
} else if (/^xps|oxps$/.test(this.fileType)) {
|
||||
this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: '', ext: true}); // original xps/oxps
|
||||
|
||||
Reference in New Issue
Block a user