Merge pull request #215 from ONLYOFFICE/feature/mobile-settings
Feature/mobile settings
This commit is contained in:
commit
5ccd06857e
|
@ -415,9 +415,38 @@ define([
|
|||
var document = Common.SharedSettings.get('document') || {},
|
||||
info = document.info || {};
|
||||
|
||||
$('#settings-document-title').html(document.title ? document.title : me.unknownText);
|
||||
$('#settings-document-autor').html(info.author ? info.author : me.unknownText);
|
||||
$('#settings-document-date').html(info.created ? info.created : me.unknownText);
|
||||
document.title ? $('#settings-document-title').html(document.title) : $('.display-document-title').remove();
|
||||
info.author ? $('#settings-document-owner').html(info.author) : $('.display-owner').remove();
|
||||
info.uploaded ? $('#settings-doc-uploaded').html(info.uploaded.toLocaleString()) : $('.display-uploaded').remove();
|
||||
info.folder ? $('#settings-doc-location').html(info.folder) : $('.display-location').remove();
|
||||
|
||||
var appProps = (this.api) ? this.api.asc_getAppProps() : null;
|
||||
if (appProps) {
|
||||
var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || '');
|
||||
appName ? $('#settings-doc-application').html(appName) : $('.display-application').remove();
|
||||
}
|
||||
var props = (this.api) ? this.api.asc_getCoreProps() : null,
|
||||
value;
|
||||
if (props) {
|
||||
value = props.asc_getTitle();
|
||||
value ? $('#settings-doc-title').html(value) : $('.display-title').remove();
|
||||
value = props.asc_getSubject();
|
||||
value ? $('#settings-doc-subject').html(value) : $('.display-subject').remove();
|
||||
value = props.asc_getDescription();
|
||||
value ? $('#settings-doc-comment').html(value) : $('.display-comment').remove();
|
||||
value = props.asc_getModified();
|
||||
value ? $('#settings-doc-last-mod').html(value.toLocaleString()) : $('.display-last-mode').remove();
|
||||
value = props.asc_getLastModifiedBy();
|
||||
value ? $('#settings-doc-mod-by').html(value) : $('.display-mode-by').remove();
|
||||
value = props.asc_getCreated();
|
||||
value ? $('#settings-doc-date').html(value.toLocaleString()) : $('.display-created-date').remove();
|
||||
value = props.asc_getCreator();
|
||||
var templateCreator = "";
|
||||
value && value.split(/\s*[,;]\s*/).forEach(function(item) {
|
||||
templateCreator = templateCreator + "<li class='item-content'><div class='item-inner'><div class='item-title'>" + item + "</div></div></li>";
|
||||
});
|
||||
templateCreator ? $('#list-creator').html(templateCreator) : $('.display-author').remove();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -302,22 +302,32 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textAuthor %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-owner"><%= scope.textOwner %></div>
|
||||
<div class="list-block display-owner">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-autor" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-document-owner" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textCreateDate %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-location"><%= scope.textLocation %></div>
|
||||
<div class="list-block display-location">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-date" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-doc-location" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-uploaded"><%= scope.textUploaded %></div>
|
||||
<div class="list-block display-uploaded">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-uploaded" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -357,6 +367,87 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content-block-title display-subject"><%= scope.textSubject %></div>
|
||||
<div class="list-block display-subject">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-subject" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-title"><%= scope.textTitle %></div>
|
||||
<div class="list-block display-title">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-title" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-comment"><%= scope.textComment %></div>
|
||||
<div class="list-block display-comment">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-comment" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-last-mode"><%= scope.textLastModified %></div>
|
||||
<div class="list-block display-last-mode">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-last-mod" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-mode-by"><%= scope.textLastModifiedBy %></div>
|
||||
<div class="list-block display-mode-by">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-mod-by" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-created-date"><%= scope.textCreated %></div>
|
||||
<div class="list-block display-created-date">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-date" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-application"><%= scope.textApplication %></div>
|
||||
<div class="list-block display-application">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-application" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-author"><%= scope.textAuthor %></div>
|
||||
<div class="list-block display-author">
|
||||
<ul id="list-creator">
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-doc-author" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -289,7 +289,18 @@ define([
|
|||
textCollaboration: 'Collaboration',
|
||||
textCommentingDisplay: 'Commenting Display',
|
||||
textDisplayComments: 'Comments',
|
||||
textDisplayResolvedComments: 'Resolved Comments'
|
||||
textDisplayResolvedComments: 'Resolved Comments',
|
||||
textSubject: 'Subject',
|
||||
textTitle: 'Title',
|
||||
textComment: 'Comment',
|
||||
textOwner: 'Owner',
|
||||
textApplication : 'Application',
|
||||
textLocation: 'Location',
|
||||
textUploaded: 'Uploaded',
|
||||
textLastModified: 'Last Modified',
|
||||
textLastModifiedBy: 'Last Modified By',
|
||||
textCreated: 'Created'
|
||||
|
||||
|
||||
}
|
||||
})(), DE.Views.Settings || {}))
|
||||
|
|
|
@ -495,6 +495,16 @@
|
|||
"DE.Views.Settings.textCommentingDisplay": "Commenting Display",
|
||||
"DE.Views.Settings.textDisplayComments": "Comments",
|
||||
"DE.Views.Settings.textDisplayResolvedComments": "Resolved Comments",
|
||||
"DE.Views.Settings.textSubject": "Subject",
|
||||
"DE.Views.Settings.textTitle": "Title",
|
||||
"DE.Views.Settings.textComment": "Comment",
|
||||
"DE.Views.Settings.textOwner": "Owner",
|
||||
"DE.Views.Settings.textApplication": "Application",
|
||||
"DE.Views.Settings.textLocation": "Location",
|
||||
"DE.Views.Settings.textUploaded": "Uploaded",
|
||||
"DE.Views.Settings.textLastModified": "Last Modified",
|
||||
"DE.Views.Settings.textLastModifiedBy": "Last Modified By",
|
||||
"DE.Views.Settings.textCreated": "Created",
|
||||
"DE.Views.Toolbar.textBack": "Back",
|
||||
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
||||
"Common.Views.Collaboration.textReviewing": "Review",
|
||||
|
|
|
@ -190,9 +190,51 @@ define([
|
|||
me.initPageApplicationSettings();
|
||||
} else if ('#color-schemes-view' == pageId) {
|
||||
me.initPageColorSchemes();
|
||||
} else if ('#settings-info-view' == pageId) {
|
||||
me.initPageInfo();
|
||||
}
|
||||
},
|
||||
|
||||
initPageInfo: function() {
|
||||
var document = Common.SharedSettings.get('document') || {},
|
||||
info = document.info || {};
|
||||
|
||||
document.title ? $('#settings-presentation-title').html(document.title) : $('.display-presentation-title').remove();
|
||||
info.author ? $('#settings-pe-owner').html(info.author) : $('.display-owner').remove();
|
||||
info.uploaded ? $('#settings-pe-uploaded').html(info.uploaded.toLocaleString()) : $('.display-uploaded').remove();
|
||||
info.folder ? $('#settings-pe-location').html(info.folder) : $('.display-location').remove();
|
||||
|
||||
var appProps = (this.api) ? this.api.asc_getAppProps() : null;
|
||||
if (appProps) {
|
||||
var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || '');
|
||||
appName ? $('#settings-pe-application').html(appName) : $('.display-application').remove();
|
||||
}
|
||||
|
||||
var props = (this.api) ? this.api.asc_getCoreProps() : null,
|
||||
value;
|
||||
if (props) {
|
||||
value = props.asc_getTitle();
|
||||
value ? $('#settings-pe-title').html(value) : $('.display-title').remove();
|
||||
value = props.asc_getSubject();
|
||||
value ? $('#settings-pe-subject').html(value) : $('.display-subject').remove();
|
||||
value = props.asc_getDescription();
|
||||
value ? $('#settings-pe-comment').html(value) : $('.display-comment').remove();
|
||||
value = props.asc_getModified();
|
||||
value ? $('#settings-pe-last-mod').html(value.toLocaleString()) : $('.display-last-mode').remove();
|
||||
value = props.asc_getLastModifiedBy();
|
||||
value ? $('#settings-pe-mod-by').html(value) : $('.display-mode-by').remove();
|
||||
value = props.asc_getCreated();
|
||||
value ? $('#settings-pe-date').html(value.toLocaleString()) : $('.display-created-date').remove();
|
||||
value = props.asc_getCreator();
|
||||
var templateCreator = "";
|
||||
value && value.split(/\s*[,;]\s*/).forEach(function(item) {
|
||||
templateCreator = templateCreator + "<li class='item-content'><div class='item-inner'><div class='item-title'>" + item + "</div></div></li>";
|
||||
});
|
||||
templateCreator ? $('#list-creator').html(templateCreator) : $('.display-author').remove();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
onCollaboration: function() {
|
||||
PE.getController('Common.Controllers.Collaboration').showModal();
|
||||
},
|
||||
|
|
|
@ -143,8 +143,8 @@
|
|||
<div class="pages">
|
||||
<div class="page" data-page="settings-info-view">
|
||||
<div class="page-content">
|
||||
<div class="content-block-title"><%= scope.textPresentTitle %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-presentation-title"><%= scope.textPresentTitle %></div>
|
||||
<div class="list-block display-presentation-title">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
|
@ -153,22 +153,112 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textAuthor %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-owner"><%= scope.textOwner %></div>
|
||||
<div class="list-block display-owner">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-presentation-autor" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-pe-owner" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textCreateDate %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-location"><%= scope.textLocation %></div>
|
||||
<div class="list-block display-location">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-presentation-date" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-pe-location" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-uploaded"><%= scope.textUploaded %></div>
|
||||
<div class="list-block display-uploaded">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-uploaded" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-subject"><%= scope.textSubject %></div>
|
||||
<div class="list-block display-subject">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-subject" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-title"><%= scope.textTitle %></div>
|
||||
<div class="list-block display-title">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-title" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-comment"><%= scope.textComment %></div>
|
||||
<div class="list-block display-comment">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-comment" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-last-mode"><%= scope.textLastModified %></div>
|
||||
<div class="list-block display-last-mode">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-last-mod" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-mode-by"><%= scope.textLastModifiedBy %></div>
|
||||
<div class="list-block display-mode-by">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-mod-by" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-created-date"><%= scope.textCreated %></div>
|
||||
<div class="list-block display-created-date">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-date" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-application"><%= scope.textApplication %></div>
|
||||
<div class="list-block display-application">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-application" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-author"><%= scope.textAuthor %></div>
|
||||
<div class="list-block display-author">
|
||||
<ul id="list-creator">
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-pe-author" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -168,13 +168,6 @@ define([
|
|||
|
||||
showInfo: function () {
|
||||
this.showPage('#settings-info-view');
|
||||
|
||||
var document = Common.SharedSettings.get('document') || {},
|
||||
info = document.info || {};
|
||||
|
||||
$('#settings-presentation-title').html(document.title ? document.title : this.unknownText);
|
||||
$('#settings-presentation-autor').html(info.author ? info.author : this.unknownText);
|
||||
$('#settings-presentation-date').html(info.created ? info.created : this.unknownText);
|
||||
},
|
||||
|
||||
showDownload: function () {
|
||||
|
@ -248,7 +241,17 @@ define([
|
|||
textPoint: 'Point',
|
||||
textInch: 'Inch',
|
||||
textColorSchemes: 'Color Schemes',
|
||||
textCollaboration: 'Collaboration'
|
||||
textCollaboration: 'Collaboration',
|
||||
textSubject: 'Subject',
|
||||
textTitle: 'Title',
|
||||
textComment: 'Comment',
|
||||
textOwner: 'Owner',
|
||||
textApplication : 'Application',
|
||||
textCreated: 'Created',
|
||||
textLastModified: 'Last Modified',
|
||||
textLastModifiedBy: 'Last Modified By',
|
||||
textUploaded: 'Uploaded',
|
||||
textLocation: 'Location'
|
||||
}
|
||||
})(), PE.Views.Settings || {}))
|
||||
});
|
|
@ -476,6 +476,16 @@
|
|||
"PE.Views.Settings.textColorSchemes": "Color Schemes",
|
||||
"PE.Views.Settings.unknownText": "Unknown",
|
||||
"PE.Views.Settings.textCollaboration": "Collaboration",
|
||||
"PE.Views.Settings.textSubject": "Subject",
|
||||
"PE.Views.Settings.textTitle": "Title",
|
||||
"PE.Views.Settings. textComment": "Comment",
|
||||
"PE.Views.Settings.textOwner": "Owner",
|
||||
"PE.Views.Settings.textApplication": "Application",
|
||||
"PE.Views.Settings.textCreated": "Created",
|
||||
"PE.Views.Settings.textLastModified": "Last Modified",
|
||||
"PE.Views.Settings.textLastModifiedBy": "Last Modified By",
|
||||
"PE.Views.Settings.textUploaded": "Uploaded",
|
||||
"PE.Views.Settings.textLocation": "Location",
|
||||
"PE.Views.Toolbar.textBack": "Back",
|
||||
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
||||
"Common.Views.Collaboration.textСomments": "Сomments",
|
||||
|
|
|
@ -244,6 +244,8 @@ define([
|
|||
me.initFormulaLang();
|
||||
} else if ('#regional-settings-view' == pageId) {
|
||||
me.initRegSettings();
|
||||
} else if ('#settings-info-view' == pageId) {
|
||||
me.initPageInfo();
|
||||
} else {
|
||||
var _userCount = SSE.getController('Main').returnUserCount();
|
||||
if (_userCount > 0) {
|
||||
|
@ -252,6 +254,46 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
initPageInfo: function() {
|
||||
var document = Common.SharedSettings.get('document') || {},
|
||||
info = document.info || {};
|
||||
|
||||
document.title ? $('#settings-spreadsheet-title').html(document.title) : $('.display-spreadsheet-title').remove();
|
||||
info.author ? $('#settings-sse-owner').html(info.author) : $('.display-owner').remove();
|
||||
info.uploaded ? $('#settings-sse-uploaded').html(info.uploaded.toLocaleString()) : $('.display-uploaded').remove();
|
||||
info.folder ? $('#settings-sse-location').html(info.folder) : $('.display-location').remove();
|
||||
|
||||
var appProps = (this.api) ? this.api.asc_getAppProps() : null;
|
||||
if (appProps) {
|
||||
var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || '');
|
||||
appName ? $('#settings-sse-application').html(appName) : $('.display-application').remove();
|
||||
}
|
||||
|
||||
var props = (this.api) ? this.api.asc_getCoreProps() : null,
|
||||
value;
|
||||
if (props) {
|
||||
value = props.asc_getTitle();
|
||||
value ? $('#settings-sse-title').html(value) : $('.display-title').remove();
|
||||
value = props.asc_getSubject();
|
||||
value ? $('#settings-sse-subject').html(value) : $('.display-subject').remove();
|
||||
value = props.asc_getDescription();
|
||||
value ? $('#settings-sse-comment').html(value) : $('.display-comment').remove();
|
||||
value = props.asc_getModified();
|
||||
value ? $('#settings-sse-last-mod').html(value.toLocaleString()) : $('.display-last-mode').remove();
|
||||
value = props.asc_getLastModifiedBy();
|
||||
value ? $('#settings-sse-mod-by').html(value) : $('.display-mode-by').remove();
|
||||
value = props.asc_getCreated();
|
||||
value ? $('#settings-sse-date').html(value.toLocaleString()) : $('.display-created-date').remove();
|
||||
value = props.asc_getCreator();
|
||||
var templateCreator = "";
|
||||
value && value.split(/\s*[,;]\s*/).forEach(function(item) {
|
||||
templateCreator = templateCreator + "<li class='item-content'><div class='item-inner'><div class='item-title'>" + item + "</div></div></li>";
|
||||
});
|
||||
templateCreator ? $('#list-creator').html(templateCreator) : $('.display-author').remove();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
initRegSettings: function() {
|
||||
var value = Number(Common.localStorage.getItem('sse-settings-regional'));
|
||||
this.getView('Settings').renderRegSettings(value ? value : 0x0409, _regdata);
|
||||
|
|
|
@ -155,32 +155,122 @@
|
|||
<div class="pages">
|
||||
<div class="page" data-page="settings-info-view">
|
||||
<div class="page-content">
|
||||
<div class="content-block-title"><%= scope.textDocTitle %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-spreadsheet-title"><%= scope.textDocTitle %></div>
|
||||
<div class="list-block display-spreadsheet-title">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-title" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-spreadsheet-title" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textAuthor %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-owner"><%= scope.textOwner %></div>
|
||||
<div class="list-block display-owner">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-autor" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-sse-owner" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textCreateDate %></div>
|
||||
<div class="list-block">
|
||||
<div class="content-block-title display-location"><%= scope.textLocation %></div>
|
||||
<div class="list-block display-location">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-date" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-sse-location" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-uploaded"><%= scope.textUploaded %></div>
|
||||
<div class="list-block display-uploaded">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-uploaded" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-subject"><%= scope.textSubject %></div>
|
||||
<div class="list-block display-subject">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-subject" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-title"><%= scope.textTitle %></div>
|
||||
<div class="list-block display-title">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-title" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-comment"><%= scope.textComment %></div>
|
||||
<div class="list-block display-comment">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-comment" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-last-mode"><%= scope.textLastModified %></div>
|
||||
<div class="list-block display-last-mode">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-last-mod" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-mode-by"><%= scope.textLastModifiedBy %></div>
|
||||
<div class="list-block display-mode-by">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-mod-by" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-created-date"><%= scope.textCreated %></div>
|
||||
<div class="list-block display-created-date">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-date" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-application"><%= scope.textApplication %></div>
|
||||
<div class="list-block display-application">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-application" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title display-author"><%= scope.textAuthor %></div>
|
||||
<div class="list-block display-author">
|
||||
<ul id="list-creator">
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-sse-author" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -203,15 +203,6 @@ define([
|
|||
|
||||
showDocumentInfo: function() {
|
||||
this.showPage('#settings-info-view');
|
||||
|
||||
var document = Common.SharedSettings.get('document') || {},
|
||||
info = document.info || {};
|
||||
|
||||
$('#settings-document-title').html(document.title ? document.title : this.unknownText);
|
||||
$('#settings-document-autor').html(info.author ? info.author : this.unknownText);
|
||||
$('#settings-document-date').html(info.created ? info.created : this.unknownText);
|
||||
|
||||
Common.Utils.addScrollIfNeed('.page[data-page=settings-info-view]', '.page[data-page=settings-info-view] .page-content');
|
||||
},
|
||||
|
||||
showDownload: function () {
|
||||
|
@ -386,7 +377,17 @@ define([
|
|||
textRegionalSettings: 'Regional Settings',
|
||||
textCommentingDisplay: 'Commenting Display',
|
||||
textDisplayComments: 'Comments',
|
||||
textDisplayResolvedComments: 'Resolved Comments'
|
||||
textDisplayResolvedComments: 'Resolved Comments',
|
||||
textSubject: 'Subject',
|
||||
textTitle: 'Title',
|
||||
textComment: 'Comment',
|
||||
textOwner: 'Owner',
|
||||
textApplication : 'Application',
|
||||
textCreated: 'Created',
|
||||
textLastModified: 'Last Modified',
|
||||
textLastModifiedBy: 'Last Modified By',
|
||||
textUploaded: 'Uploaded',
|
||||
textLocation: 'Location'
|
||||
}
|
||||
})(), SSE.Views.Settings || {}))
|
||||
});
|
|
@ -558,6 +558,16 @@
|
|||
"SSE.Views.Settings.textCommentingDisplay": "Commenting Display",
|
||||
"SSE.Views.Settings.textDisplayComments": "Comments",
|
||||
"SSE.Views.Settings.textDisplayResolvedComments": "Resolved Comments",
|
||||
"SSE.Views.Settings.textSubject": "Subject",
|
||||
"SSE.Views.Settings.textTitle": "Title",
|
||||
"SSE.Views.Settings.textComment": "Comment",
|
||||
"SSE.Views.Settings.textOwner": "Owner",
|
||||
"SSE.Views.Settings.textApplication": "Application",
|
||||
"SSE.Views.Settings.textCreated": "Created",
|
||||
"SSE.Views.Settings.textLastModified": "Last Modified",
|
||||
"SSE.Views.Settings.textLastModifiedBy": "Last Modified By",
|
||||
"SSE.Views.Settings.textUploaded": "Uploaded",
|
||||
"SSE.Views.Settings. textLocation": "Location",
|
||||
"SSE.Views.Toolbar.textBack": "Back",
|
||||
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
||||
"Common.Views.Collaboration.textСomments": "Сomments",
|
||||
|
|
Loading…
Reference in a new issue