Tweak tooltip style for recipients
This commit is contained in:
parent
edbc1060ce
commit
1add45ae6a
|
@ -16,12 +16,12 @@
|
||||||
var TEMPLATE =
|
var TEMPLATE =
|
||||||
'<ul id="shareWithList" class="shareWithList">' +
|
'<ul id="shareWithList" class="shareWithList">' +
|
||||||
'{{#each sharees}}' +
|
'{{#each sharees}}' +
|
||||||
' <li data-share-id="{{shareId}}" data-share-type="{{shareType}}" data-share-with="{{shareWith}}" title="{{shareWith}}">' +
|
' <li data-share-id="{{shareId}}" data-share-type="{{shareType}}" data-share-with="{{shareWith}}">' +
|
||||||
' <a href="#" class="unshare"><span class="icon-loading-small hidden"></span><img class="svg" alt="{{unshareLabel}}" title="{{unshareLabel}}" src="{{unshareImage}}" /></a>' +
|
' <a href="#" class="unshare"><span class="icon-loading-small hidden"></span><img class="svg" alt="{{unshareLabel}}" title="{{unshareLabel}}" src="{{unshareImage}}" /></a>' +
|
||||||
' {{#if avatarEnabled}}' +
|
' {{#if avatarEnabled}}' +
|
||||||
' <div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
|
' <div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
|
||||||
' {{/if}}' +
|
' {{/if}}' +
|
||||||
' <span class="username">{{shareWithDisplayName}}</span>' +
|
' <span class="has-tooltip username" title="{{shareWith}}">{{shareWithDisplayName}}</span>' +
|
||||||
' {{#if mailNotificationEnabled}} {{#unless isRemoteShare}}' +
|
' {{#if mailNotificationEnabled}} {{#unless isRemoteShare}}' +
|
||||||
' <input id="mail-{{cid}}-{{shareWith}}" type="checkbox" name="mailNotification" class="mailNotification checkbox" {{#if wasMailSent}}checked="checked"{{/if}} />' +
|
' <input id="mail-{{cid}}-{{shareWith}}" type="checkbox" name="mailNotification" class="mailNotification checkbox" {{#if wasMailSent}}checked="checked"{{/if}} />' +
|
||||||
' <label for="mail-{{cid}}-{{shareWith}}">{{notifyByMailLabel}}</label>' +
|
' <label for="mail-{{cid}}-{{shareWith}}">{{notifyByMailLabel}}</label>' +
|
||||||
|
@ -193,6 +193,10 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$el.find('.has-tooltip').tooltip({
|
||||||
|
placement: 'bottom'
|
||||||
|
});
|
||||||
|
|
||||||
this.delegateEvents();
|
this.delegateEvents();
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -263,6 +263,10 @@
|
||||||
if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
|
if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
|
||||||
insert = insert.wrapInner('<strong></strong>');
|
insert = insert.wrapInner('<strong></strong>');
|
||||||
}
|
}
|
||||||
|
insert.tooltip({
|
||||||
|
placement: 'bottom',
|
||||||
|
container: 'body'
|
||||||
|
});
|
||||||
return $("<li>")
|
return $("<li>")
|
||||||
.addClass((item.value.shareType === OC.Share.SHARE_TYPE_GROUP) ? 'group' : 'user')
|
.addClass((item.value.shareType === OC.Share.SHARE_TYPE_GROUP) ? 'group' : 'user')
|
||||||
.append(insert)
|
.append(insert)
|
||||||
|
|
Loading…
Reference in New Issue