|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var TEMPLATE_BASE =
|
|
|
|
|
'{{{resharerInfo}}}' +
|
|
|
|
|
'<div class="resharerInfo"></div>' +
|
|
|
|
|
'<label for="shareWith" class="hidden-visually">{{shareLabel}}</label>' +
|
|
|
|
|
'<div class="oneline">' +
|
|
|
|
|
' <input id="shareWith" type="text" placeholder="{{sharePlaceholder}}" />' +
|
|
|
|
|
@ -135,11 +135,8 @@
|
|
|
|
|
render: function() {
|
|
|
|
|
var baseTemplate = this._getTemplate('base', TEMPLATE_BASE);
|
|
|
|
|
|
|
|
|
|
this.resharerInfoView.render();
|
|
|
|
|
|
|
|
|
|
this.$el.html(baseTemplate({
|
|
|
|
|
shareLabel: t('core', 'Share'),
|
|
|
|
|
resharerInfo: this.resharerInfoView.el.innerHTML,
|
|
|
|
|
sharePlaceholder: this._renderSharePlaceholderPart(),
|
|
|
|
|
remoteShareInfo: this._renderRemoteShareInfoPart(),
|
|
|
|
|
linkShare: this._renderLinkSharePart(),
|
|
|
|
|
@ -148,6 +145,9 @@
|
|
|
|
|
expiration: this._renderExpirationPart()
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
this.resharerInfoView.$el = this.$el.find('.resharerInfo');
|
|
|
|
|
this.resharerInfoView.render();
|
|
|
|
|
|
|
|
|
|
this.$el.find('.hasTooltip').tooltip();
|
|
|
|
|
if(this.configModel.areAvatarsEnabled()) {
|
|
|
|
|
this.$el.find('.avatar').avatar(this.model.getReshareOwner, 32);
|
|
|
|
|
|