Merge pull request #2015 from ONLYOFFICE/feature/tags
[SSE DE PE] Added tag field in the file menu
This commit is contained in:
commit
b9c5b2b014
|
@ -1226,6 +1226,10 @@ define([
|
|||
'<td class="left"><label>' + this.txtTitle + '</label></td>',
|
||||
'<td class="right"><div id="id-info-title"></div></td>',
|
||||
'</tr>',
|
||||
'<tr class="docx-info">',
|
||||
'<td class="left"><label>' + this.txtTags + '</label></td>',
|
||||
'<td class="right"><div id="id-info-tags"></div></td>',
|
||||
'</tr>',
|
||||
'<tr class="docx-info">',
|
||||
'<td class="left"><label>' + this.txtSubject + '</label></td>',
|
||||
'<td class="right"><div id="id-info-subject"></div></td>',
|
||||
|
@ -1354,6 +1358,15 @@ define([
|
|||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputTags = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-tags'),
|
||||
style : 'width: 200px;',
|
||||
placeHolder : this.txtAddText,
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputSubject = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-subject'),
|
||||
style : 'width: 200px;',
|
||||
|
@ -1571,6 +1584,8 @@ define([
|
|||
|
||||
value = props.asc_getTitle();
|
||||
this.inputTitle.setValue(value || '');
|
||||
value = props.asc_getKeywords();
|
||||
this.inputTags.setValue(value || '');
|
||||
value = props.asc_getSubject();
|
||||
this.inputSubject.setValue(value || '');
|
||||
value = props.asc_getDescription();
|
||||
|
@ -1725,6 +1740,7 @@ define([
|
|||
this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit);
|
||||
if (!mode.isEdit) {
|
||||
this.inputTitle._input.attr('placeholder', '');
|
||||
this.inputTags._input.attr('placeholder', '');
|
||||
this.inputSubject._input.attr('placeholder', '');
|
||||
this.inputComment._input.attr('placeholder', '');
|
||||
this.inputAuthor._input.attr('placeholder', '');
|
||||
|
@ -1795,6 +1811,7 @@ define([
|
|||
SetDisabled: function() {
|
||||
var disable = !this.mode.isEdit || this._locked;
|
||||
this.inputTitle.setDisabled(disable);
|
||||
this.inputTags.setDisabled(disable);
|
||||
this.inputSubject.setDisabled(disable);
|
||||
this.inputComment.setDisabled(disable);
|
||||
this.inputAuthor.setDisabled(disable);
|
||||
|
@ -1806,6 +1823,7 @@ define([
|
|||
applySettings: function() {
|
||||
if (this.coreProps && this.api) {
|
||||
this.coreProps.asc_putTitle(this.inputTitle.getValue());
|
||||
this.coreProps.asc_putKeywords(this.inputTags.getValue());
|
||||
this.coreProps.asc_putSubject(this.inputSubject.getValue());
|
||||
this.coreProps.asc_putDescription(this.inputComment.getValue());
|
||||
this.coreProps.asc_putCreator(this.authors.join(';'));
|
||||
|
@ -1826,6 +1844,7 @@ define([
|
|||
txtAppName: 'Application',
|
||||
txtEditTime: 'Total Editing time',
|
||||
txtTitle: 'Title',
|
||||
txtTags: 'Tags',
|
||||
txtSubject: 'Subject',
|
||||
txtComment: 'Comment',
|
||||
txtModifyDate: 'Last Modified',
|
||||
|
|
|
@ -1951,6 +1951,7 @@
|
|||
"DE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Subject",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtSymbols": "Symbols",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Title",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtTags": "Tags",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Uploaded",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtWords": "Words",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtYes": "Yes",
|
||||
|
|
|
@ -1789,6 +1789,7 @@
|
|||
"DE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Тема",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtSymbols": "Символы",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Название",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtTags": "Теги",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Загружен",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtWords": "Слова",
|
||||
"DE.Views.FileMenuPanels.DocumentInfo.txtYes": "Да",
|
||||
|
|
|
@ -977,6 +977,10 @@ define([
|
|||
'<td class="left"><label>' + this.txtTitle + '</label></td>',
|
||||
'<td class="right"><div id="id-info-title"></div></td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtTags + '</label></td>',
|
||||
'<td class="right"><div id="id-info-tags"></div></td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtSubject + '</label></td>',
|
||||
'<td class="right"><div id="id-info-subject"></div></td>',
|
||||
|
@ -1064,6 +1068,15 @@ define([
|
|||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputTags = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-tags'),
|
||||
style : 'width: 200px;',
|
||||
placeHolder : this.txtAddText,
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputSubject = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-subject'),
|
||||
style : 'width: 200px;',
|
||||
|
@ -1268,6 +1281,8 @@ define([
|
|||
|
||||
value = props.asc_getTitle();
|
||||
this.inputTitle.setValue(value || '');
|
||||
value = props.asc_getKeywords();
|
||||
this.inputTags.setValue(value || '');
|
||||
value = props.asc_getSubject();
|
||||
this.inputSubject.setValue(value || '');
|
||||
value = props.asc_getDescription();
|
||||
|
@ -1306,6 +1321,7 @@ define([
|
|||
this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit);
|
||||
if (!mode.isEdit) {
|
||||
this.inputTitle._input.attr('placeholder', '');
|
||||
this.inputTags._input.attr('placeholder', '');
|
||||
this.inputSubject._input.attr('placeholder', '');
|
||||
this.inputComment._input.attr('placeholder', '');
|
||||
this.inputAuthor._input.attr('placeholder', '');
|
||||
|
@ -1329,6 +1345,7 @@ define([
|
|||
SetDisabled: function() {
|
||||
var disable = !this.mode.isEdit || this._locked;
|
||||
this.inputTitle.setDisabled(disable);
|
||||
this.inputTags.setDisabled(disable);
|
||||
this.inputSubject.setDisabled(disable);
|
||||
this.inputComment.setDisabled(disable);
|
||||
this.inputAuthor.setDisabled(disable);
|
||||
|
@ -1340,6 +1357,7 @@ define([
|
|||
applySettings: function() {
|
||||
if (this.coreProps && this.api) {
|
||||
this.coreProps.asc_putTitle(this.inputTitle.getValue());
|
||||
this.coreProps.asc_putKeywords(this.inputTags.getValue());
|
||||
this.coreProps.asc_putSubject(this.inputSubject.getValue());
|
||||
this.coreProps.asc_putDescription(this.inputComment.getValue());
|
||||
this.coreProps.asc_putCreator(this.authors.join(';'));
|
||||
|
@ -1354,6 +1372,7 @@ define([
|
|||
txtAppName: 'Application',
|
||||
txtEditTime: 'Total Editing time',
|
||||
txtTitle: 'Title',
|
||||
txtTags: 'Tags',
|
||||
txtSubject: 'Subject',
|
||||
txtComment: 'Comment',
|
||||
txtModifyDate: 'Last Modified',
|
||||
|
|
|
@ -1837,6 +1837,7 @@
|
|||
"PE.Views.FileMenuPanels.DocumentInfo.txtRights": "Persons who have rights",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Subject",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Title",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtTags": "Tags",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Uploaded",
|
||||
"PE.Views.FileMenuPanels.DocumentRights.txtBtnAccessRights": "Change access rights",
|
||||
"PE.Views.FileMenuPanels.DocumentRights.txtRights": "Persons who have rights",
|
||||
|
|
|
@ -1675,6 +1675,7 @@
|
|||
"PE.Views.FileMenuPanels.DocumentInfo.txtRights": "Люди, имеющие права",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Тема",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Название",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtTags": "Теги",
|
||||
"PE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Загружена",
|
||||
"PE.Views.FileMenuPanels.DocumentRights.txtBtnAccessRights": "Изменить права доступа",
|
||||
"PE.Views.FileMenuPanels.DocumentRights.txtRights": "Люди, имеющие права",
|
||||
|
|
|
@ -1351,6 +1351,10 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
'<td class="left"><label>' + this.txtTitle + '</label></td>',
|
||||
'<td class="right"><div id="id-info-title"></div></td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtTags + '</label></td>',
|
||||
'<td class="right"><div id="id-info-tags"></div></td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtSubject + '</label></td>',
|
||||
'<td class="right"><div id="id-info-subject"></div></td>',
|
||||
|
@ -1438,6 +1442,15 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputTags = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-tags'),
|
||||
style : 'width: 200px;',
|
||||
placeHolder : this.txtAddText,
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputSubject = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-subject'),
|
||||
style : 'width: 200px;',
|
||||
|
@ -1642,6 +1655,8 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
|
||||
value = props.asc_getTitle();
|
||||
this.inputTitle.setValue(value || '');
|
||||
value = props.asc_getKeywords();
|
||||
this.inputTags.setValue(value || '');
|
||||
value = props.asc_getSubject();
|
||||
this.inputSubject.setValue(value || '');
|
||||
value = props.asc_getDescription();
|
||||
|
@ -1680,6 +1695,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit);
|
||||
if (!mode.isEdit) {
|
||||
this.inputTitle._input.attr('placeholder', '');
|
||||
this.inputTags._input.attr('placeholder', '');
|
||||
this.inputSubject._input.attr('placeholder', '');
|
||||
this.inputComment._input.attr('placeholder', '');
|
||||
this.inputAuthor._input.attr('placeholder', '');
|
||||
|
@ -1703,6 +1719,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
SetDisabled: function() {
|
||||
var disable = !this.mode.isEdit || this._locked;
|
||||
this.inputTitle.setDisabled(disable);
|
||||
this.inputTags.setDisabled(disable);
|
||||
this.inputSubject.setDisabled(disable);
|
||||
this.inputComment.setDisabled(disable);
|
||||
this.inputAuthor.setDisabled(disable);
|
||||
|
@ -1714,6 +1731,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
applySettings: function() {
|
||||
if (this.coreProps && this.api) {
|
||||
this.coreProps.asc_putTitle(this.inputTitle.getValue());
|
||||
this.coreProps.asc_putKeywords(this.inputTags.getValue());
|
||||
this.coreProps.asc_putSubject(this.inputSubject.getValue());
|
||||
this.coreProps.asc_putDescription(this.inputComment.getValue());
|
||||
this.coreProps.asc_putCreator(this.authors.join(';'));
|
||||
|
@ -1727,6 +1745,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
txtUploaded: 'Uploaded',
|
||||
txtAppName: 'Application',
|
||||
txtTitle: 'Title',
|
||||
txtTags: 'Tags',
|
||||
txtSubject: 'Subject',
|
||||
txtComment: 'Comment',
|
||||
txtModifyDate: 'Last Modified',
|
||||
|
|
|
@ -2333,6 +2333,7 @@
|
|||
"SSE.Views.FileMenuPanels.DocumentInfo.txtRights": "Persons who have rights",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Subject",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Title",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtTags": "Tags",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Uploaded",
|
||||
"SSE.Views.FileMenuPanels.DocumentRights.txtBtnAccessRights": "Change access rights",
|
||||
"SSE.Views.FileMenuPanels.DocumentRights.txtRights": "Persons who have rights",
|
||||
|
|
|
@ -2171,6 +2171,7 @@
|
|||
"SSE.Views.FileMenuPanels.DocumentInfo.txtRights": "Люди, имеющие права",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtSubject": "Тема",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtTitle": "Название",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtTags": "Теги",
|
||||
"SSE.Views.FileMenuPanels.DocumentInfo.txtUploaded": "Загружена",
|
||||
"SSE.Views.FileMenuPanels.DocumentRights.txtBtnAccessRights": "Изменить права доступа",
|
||||
"SSE.Views.FileMenuPanels.DocumentRights.txtRights": "Люди, имеющие права",
|
||||
|
|
Loading…
Reference in a new issue