Skip to content

Commit

Permalink
[all] fix bug 63125
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Jun 21, 2023
1 parent 702f38d commit 48f5737
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions apps/documenteditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ define([
this.formats[0].splice(3, 2); // remove docxf and oform
}

this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'docx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'DE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down Expand Up @@ -250,7 +252,9 @@ define([
this.formats[0].splice(3, 2); // remove docxf and oform
}

this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'docx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'DE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down
8 changes: 6 additions & 2 deletions apps/presentationeditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ define([
},

render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'pptx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'pptx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'PE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down Expand Up @@ -203,7 +205,9 @@ define([
},

render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'pptx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'pptx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'PE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down
8 changes: 6 additions & 2 deletions apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ define([
},

render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'xlsx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'xlsx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'SSE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down Expand Up @@ -192,7 +194,9 @@ define([
},

render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'xlsx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'xlsx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'SSE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));

if (_.isUndefined(this.scroller)) {
Expand Down

0 comments on commit 48f5737

Please sign in to comment.