Merge pull request #4562 from nextcloud/contactmenu-second-tooltip

Show tooltip for second action in contacts menu
This commit is contained in:
Joas Schilling 2017-04-28 09:38:36 +02:00 committed by GitHub
commit 3fb7de2dfb
1 changed files with 3 additions and 1 deletions

View File

@ -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;
},