[DE mobile] Added new options into Document Info
This commit is contained in:
parent
48a92d5fa7
commit
bf6f074aed
|
@ -416,8 +416,29 @@ define([
|
|||
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);
|
||||
$('#settings-document-owner').html(info.author ? info.author : me.unknownText);
|
||||
|
||||
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_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,12 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textAuthor %></div>
|
||||
<div class="content-block-title"><%= scope.textOwner %></div>
|
||||
<div class="list-block">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-autor" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block-title"><%= scope.textCreateDate %></div>
|
||||
<div class="list-block">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div id="settings-document-date" class="item-title"><%= scope.textLoading %></div>
|
||||
<div id="settings-document-owner" class="item-title"><%= scope.textLoading %></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -357,6 +347,57 @@
|
|||
</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-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,12 @@ define([
|
|||
textCollaboration: 'Collaboration',
|
||||
textCommentingDisplay: 'Commenting Display',
|
||||
textDisplayComments: 'Comments',
|
||||
textDisplayResolvedComments: 'Resolved Comments'
|
||||
textDisplayResolvedComments: 'Resolved Comments',
|
||||
textSubject: 'Subject',
|
||||
textTitle: 'Title',
|
||||
textComment: 'Comment',
|
||||
textOwner: 'Owner',
|
||||
textApplication : 'Application'
|
||||
|
||||
}
|
||||
})(), DE.Views.Settings || {}))
|
||||
|
|
Loading…
Reference in a new issue