put the tooltip on the actual button to prevent tippy from popping when not intended

pull/1/head
Pierre Bondoerffer 7 years ago
parent ec011b15d5
commit 665e81912e
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -446,7 +446,7 @@ define([
//$shareBlock.find('button').attr('id', 'shareButton'); //$shareBlock.find('button').attr('id', 'shareButton');
$shareBlock.find('.dropdown-bar-content').addClass(SHARE_CLS).addClass(EDITSHARE_CLS).addClass(VIEWSHARE_CLS); $shareBlock.find('.dropdown-bar-content').addClass(SHARE_CLS).addClass(EDITSHARE_CLS).addClass(VIEWSHARE_CLS);
$shareBlock.addClass('shareButton'); $shareBlock.addClass('shareButton');
$shareBlock.attr('title', Messages.shareButton); $shareBlock.find('button').attr('title', Messages.shareButton);
if (hashes.editHash) { if (hashes.editHash) {
$shareBlock.find('a.editShare').click(function () { $shareBlock.find('a.editShare').click(function () {
@ -761,7 +761,7 @@ define([
var createUserAdmin = function (toolbar, config) { var createUserAdmin = function (toolbar, config) {
var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show(); var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show();
$userAdmin.attr('title', Messages.userAccountButton); $userAdmin.find('button').attr('title', Messages.userAccountButton);
var userMenuCfg = { var userMenuCfg = {
$initBlock: $userAdmin $initBlock: $userAdmin
}; };

Loading…
Cancel
Save