From c9c5fedd7e721600020e23ffaa2cbab68e4cc940 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 25 Mar 2019 09:23:51 +0100 Subject: [PATCH] [9.0.12] Tippy better setup --- core/core.js.php | 5 +---- core/vendor/tippy/init.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/core.js.php b/core/core.js.php index 0a45d9cc..13e9730d 100755 --- a/core/core.js.php +++ b/core/core.js.php @@ -334,10 +334,7 @@ core.start = function() { // Ajouter la classe Gallery afin de faire la liaison avec simplelightbox $("a[rel='gallery']").addClass("gallery",""); - /** - * Démarrer simplelightbox - **/ - + // $('.gallery').simpleLightbox(); }; diff --git a/core/vendor/tippy/init.js b/core/vendor/tippy/init.js index c5af6cd3..a3846976 100755 --- a/core/vendor/tippy/init.js +++ b/core/vendor/tippy/init.js @@ -14,7 +14,7 @@ $(document).ready(function() { placement: "top" }); // Pour les images map, pas de flèche, bulle haut suivant le curseur - tippy('img', { + tippy('img[title], a[title]', { content(reference) { const title = reference.getAttribute('title') reference.removeAttribute('title')