Use tooltop for contact's top action title
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
e3efc4979b
commit
5762cd9436
|
@ -58,7 +58,7 @@
|
||||||
+ ' <div class="last-message">{{contact.lastMessage}}</div>'
|
+ ' <div class="last-message">{{contact.lastMessage}}</div>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '{{#if contact.topAction}}'
|
+ '{{#if contact.topAction}}'
|
||||||
+ '<a class="top-action {{contact.topAction.icon}}" href="{{contact.topAction.hyperlink}}"></a>'
|
+ '<a class="top-action {{contact.topAction.icon}}" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}"></a>'
|
||||||
+ '{{/if}}'
|
+ '{{/if}}'
|
||||||
+ '{{#if contact.hasManyActions}}'
|
+ '{{#if contact.hasManyActions}}'
|
||||||
+ ' <span class="other-actions icon-more"></span>'
|
+ ' <span class="other-actions icon-more"></span>'
|
||||||
|
@ -221,6 +221,9 @@
|
||||||
// Show placeholder iff no avatar is available (avatar is rendered as img, not div)
|
// Show placeholder iff no avatar is available (avatar is rendered as img, not div)
|
||||||
this.$('div.avatar').imageplaceholder(this._model.get('fullName'));
|
this.$('div.avatar').imageplaceholder(this._model.get('fullName'));
|
||||||
|
|
||||||
|
// Show tooltip for top action
|
||||||
|
this.$('.top-action').tooltip({placement: 'left'});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue