[DE] Fix formats

This commit is contained in:
Julia Radzhabova 2021-12-02 00:48:56 +03:00
parent e72f0b5ab1
commit 2c3c790a63

View file

@ -97,6 +97,12 @@ define([
},
render: function() {
if ('{{DEFAULT_LANG}}'.split(/[\-_]/)[0].toLowerCase()=='ru') {
this.formats[2].splice(1, 2);
this.formats[2] = this.formats[2].concat(this.formats[3]);
this.formats[3] = undefined;
}
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase()}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
@ -173,6 +179,12 @@ define([
},
render: function() {
if ('{{DEFAULT_LANG}}'.split(/[\-_]/)[0].toLowerCase()=='ru') {
this.formats[2].splice(1, 2);
this.formats[2] = this.formats[2].concat(this.formats[3]);
this.formats[3] = undefined;
}
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase()}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));