nodebb-theme-harmony
Advanced tools
Comparing version 1.0.0-beta.28 to 1.0.0-beta.29
{ | ||
"skins": "Skins", | ||
"collapse": "Collapse", | ||
"toggle-sidebars": "Toggle sidebars", | ||
"login-register-to-search": "Login or register to search.", | ||
@@ -5,0 +6,0 @@ "settings.title": "Theme settings", |
{ | ||
"name": "nodebb-theme-harmony", | ||
"version": "1.0.0-beta.28", | ||
"version": "1.0.0-beta.29", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.0.0" |
@@ -9,2 +9,3 @@ 'use strict'; | ||
handleMobileNavigator(); | ||
setupNavTooltips(); | ||
@@ -146,2 +147,23 @@ $('[component="skinSwitcher"]').on('click', '.dropdown-item', function () { | ||
} | ||
function setupNavTooltips() { | ||
// remove title from user icon in sidebar to prevent double tooltip | ||
$('.sidebar [component="header/avatar"] .avatar').removeAttr('title'); | ||
const tooltipEls = $('.sidebar [title]'); | ||
tooltipEls.tooltip({ | ||
trigger: 'manual', | ||
animation: false, | ||
}); | ||
tooltipEls.on('mouseenter', function (ev) { | ||
const target = $(ev.target); | ||
const isDropdown = target.hasClass('dropdown-menu') || !!target.parents('.dropdown-menu').length; | ||
if (!$('.sidebar').hasClass('open') && !isDropdown) { | ||
$(this).tooltip('show'); | ||
} | ||
}); | ||
tooltipEls.on('click mouseleave', function () { | ||
$(this).tooltip('hide'); | ||
}); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276760
175
416