Browse Source

Use tooltop for contact's top action title

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/3233/head
Christoph Wurst 9 years ago
parent
commit
5762cd9436
  1. 5
      core/js/contactsmenu.js

5
core/js/contactsmenu.js

@ -58,7 +58,7 @@
+ ' <div class="last-message">{{contact.lastMessage}}</div>'
+ '</div>'
+ '{{#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 contact.hasManyActions}}'
+ ' <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)
this.$('div.avatar').imageplaceholder(this._model.get('fullName'));
// Show tooltip for top action
this.$('.top-action').tooltip({placement: 'left'});
return this;
},

Loading…
Cancel
Save