summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-03 15:30:15 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-25 20:47:17 +0200
commit5762cd94369acde40cdc40834f5df5f85150e8a3 (patch)
tree3efd08083177a414f9c0fee073e708a8e234c702 /core
parente3efc4979be7319a67dd63bda02aa8e0cc1eed26 (diff)
downloadnextcloud-server-5762cd94369acde40cdc40834f5df5f85150e8a3.tar.gz
nextcloud-server-5762cd94369acde40cdc40834f5df5f85150e8a3.zip
Use tooltop for contact's top action title
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core')
-rw-r--r--core/js/contactsmenu.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/contactsmenu.js b/core/js/contactsmenu.js
index 2991a0e84d1..bf469b8a321 100644
--- a/core/js/contactsmenu.js
+++ b/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;
},