From 665e81912e4d0073819afc99d922ef8c07bea110 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Wed, 9 Aug 2017 11:06:06 +0200 Subject: [PATCH] put the tooltip on the actual button to prevent tippy from popping when not intended --- www/common/toolbar2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 004cfd2b2..2165a3eb9 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -446,7 +446,7 @@ define([ //$shareBlock.find('button').attr('id', 'shareButton'); $shareBlock.find('.dropdown-bar-content').addClass(SHARE_CLS).addClass(EDITSHARE_CLS).addClass(VIEWSHARE_CLS); $shareBlock.addClass('shareButton'); - $shareBlock.attr('title', Messages.shareButton); + $shareBlock.find('button').attr('title', Messages.shareButton); if (hashes.editHash) { $shareBlock.find('a.editShare').click(function () { @@ -761,7 +761,7 @@ define([ var createUserAdmin = function (toolbar, config) { var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show(); - $userAdmin.attr('title', Messages.userAccountButton); + $userAdmin.find('button').attr('title', Messages.userAccountButton); var userMenuCfg = { $initBlock: $userAdmin };