summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorIvan Sein <ivan@struktur.de>2017-04-27 18:11:35 +0200
committerIvan Sein <ivan@struktur.de>2017-04-27 18:11:35 +0200
commit9c4275a832b46f37aeb4cd0424a0a315718b5e3d (patch)
tree6ad189fdd696edcfe83db7a0d99da34024131dca /core
parent31c762aebf5f086e3e4ed4e76c270ab4a1bf3812 (diff)
downloadnextcloud-server-9c4275a832b46f37aeb4cd0424a0a315718b5e3d.tar.gz
nextcloud-server-9c4275a832b46f37aeb4cd0424a0a315718b5e3d.zip
Show tooltip for second action.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/js/contactsmenu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/contactsmenu.js b/core/js/contactsmenu.js
index 15c48887d20..9ce27509e8b 100644
--- a/core/js/contactsmenu.js
+++ b/core/js/contactsmenu.js
@@ -64,7 +64,7 @@
+ '</a>'
+ '{{/if}}'
+ '{{#if contact.hasTwoActions}}'
- + '<a class="second-action" href="{{contact.secondAction.hyperlink}}">'
+ + '<a class="second-action" href="{{contact.secondAction.hyperlink}}" title="{{contact.secondAction.title}}">'
+ ' <img src="{{contact.secondAction.icon}}">'
+ '</a>'
+ '{{/if}}'
@@ -228,6 +228,8 @@
// Show tooltip for top action
this.$('.top-action').tooltip({placement: 'left'});
+ // Show tooltip for second action
+ this.$('.second-action').tooltip({placement: 'left'});
return this;
},