Skip to content
Extraits de code Groupes Projets
Valider d12eb739 rédigé par Matthieu Aubry's avatar Matthieu Aubry
Parcourir les fichiers

Merge pull request #8767 from piwik/cursor_fix_for_non_linked_sparklines

Show pointer cursor only on sparklines that are linked to a graph
parents 94141808 c6f9ca8b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -42,10 +42,14 @@ window.initializeSparklines = function () { ...@@ -42,10 +42,14 @@ window.initializeSparklines = function () {
// try to find sparklines and add them clickable behaviour // try to find sparklines and add them clickable behaviour
graph.parent().find('div.sparkline').each(function () { graph.parent().find('div.sparkline').each(function () {
// find the sparkline and get it's src attribute // find the sparkline and get it's src attribute
var sparklineUrl = $('img', this).attr('data-src'); var sparklineUrl = $('img', this).attr('data-src');
if (sparklineUrl != "") { if (sparklineUrl != "") {
$(this).addClass('linked');
var params = broadcast.getValuesFromUrl(sparklineUrl); var params = broadcast.getValuesFromUrl(sparklineUrl);
for (var i = 0; i != sparklineUrlParamsToIgnore.length; ++i) { for (var i = 0; i != sparklineUrlParamsToIgnore.length; ++i) {
delete params[sparklineUrlParamsToIgnore[i]]; delete params[sparklineUrlParamsToIgnore[i]];
......
...@@ -3,7 +3,7 @@ div.sparkline { ...@@ -3,7 +3,7 @@ div.sparkline {
border-bottom: 1px solid white; border-bottom: 1px solid white;
} }
div.sparkline:hover { div.sparkline.linked:hover {
cursor: pointer; cursor: pointer;
border-bottom: 1px dashed #c3c3c3; border-bottom: 1px dashed #c3c3c3;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter