Merge pull request #4562 from nextcloud/contactmenu-second-tooltip
Show tooltip for second action in contacts menu
This commit is contained in:
commit
3fb7de2dfb
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
+ '</a>'
|
+ '</a>'
|
||||||
+ '{{/if}}'
|
+ '{{/if}}'
|
||||||
+ '{{#if contact.hasTwoActions}}'
|
+ '{{#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}}">'
|
+ ' <img src="{{contact.secondAction.icon}}">'
|
||||||
+ '</a>'
|
+ '</a>'
|
||||||
+ '{{/if}}'
|
+ '{{/if}}'
|
||||||
|
@ -228,6 +228,8 @@
|
||||||
|
|
||||||
// Show tooltip for top action
|
// Show tooltip for top action
|
||||||
this.$('.top-action').tooltip({placement: 'left'});
|
this.$('.top-action').tooltip({placement: 'left'});
|
||||||
|
// Show tooltip for second action
|
||||||
|
this.$('.second-action').tooltip({placement: 'left'});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue