]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show tooltip for second action. 4562/head
authorIvan Sein <ivan@struktur.de>
Thu, 27 Apr 2017 16:11:35 +0000 (18:11 +0200)
committerIvan Sein <ivan@struktur.de>
Thu, 27 Apr 2017 16:11:35 +0000 (18:11 +0200)
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
core/js/contactsmenu.js

index 15c48887d200b9b2038dd106fafe337c0af42e48..9ce27509e8b9213ad6fe76cf8287911e53802ed4 100644 (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}}'
 
                        // Show tooltip for top action
                        this.$('.top-action').tooltip({placement: 'left'});
+                       // Show tooltip for second action
+                       this.$('.second-action').tooltip({placement: 'left'});
 
                        return this;
                },