Skip to content

Commit

Permalink
refs #3813 disabled animations for tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 30, 2013
1 parent 7fd5e00 commit 6defcda
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 11 deletions.
10 changes: 8 additions & 2 deletions plugins/CoreHome/templates/datatable.js
Expand Up @@ -1119,7 +1119,11 @@ dataTable.prototype =
}

// use tooltip (tooltip text determined by the 'title' attribute)
tooltipElem.tooltip({track: true});
tooltipElem.tooltip({
track: true,
show: false,
hide: false
});
},

//Apply some miscelleaneous style to the DataTable
Expand Down Expand Up @@ -1495,7 +1499,9 @@ dataTable.prototype =
track: true,
items: 'a',
content: '<h3>'+action.dataTableIconTooltip[0]+'</h3>'+action.dataTableIconTooltip[1],
tooltipClass: 'rowActionTooltip'
tooltipClass: 'rowActionTooltip',
show: false,
hide: false
});
}
}
Expand Down
12 changes: 9 additions & 3 deletions plugins/CoreHome/templates/jqplot.js
Expand Up @@ -173,7 +173,9 @@ JQPlot.prototype = {
$(this).tooltip({
track: true,
items: '*',
content: '<h3>' + label + '</h3>' + text
content: '<h3>' + label + '</h3>' + text,
show: false,
hide: false
}).trigger('mouseover');

} else if (type == 'pie') {
Expand All @@ -187,7 +189,9 @@ JQPlot.prototype = {
$(this).tooltip({
track: true,
items: '*',
content: '<h3>' + label + '</h3>' + text
content: '<h3>' + label + '</h3>' + text,
show: false,
hide: false
}).trigger('mouseover');
}
})
Expand Down Expand Up @@ -379,7 +383,9 @@ JQPlot.prototype = {
$(this).tooltip({
track: true,
items: 'div',
content: '<h3>'+label+'</h3>'+text.join('<br />')
content: '<h3>'+label+'</h3>'+text.join('<br />'),
show: false,
hide: false
}).trigger('mouseover');
if (typeof self.params.axes.xaxis.onclick != 'undefined'
&& typeof self.params.axes.xaxis.onclick[lastTick] == 'string') {
Expand Down
4 changes: 3 additions & 1 deletion plugins/Goals/templates/single_goal.tpl
Expand Up @@ -32,7 +32,9 @@
track: true,
content: function () {
return $(this).attr("title");
}
},
show: false,
hide: false
});
});
</script>
Expand Down
4 changes: 3 additions & 1 deletion plugins/Overlay/templates/index.js
Expand Up @@ -61,7 +61,9 @@ var Piwik_Overlay = (function () {
items: '*',
tooltipClass: 'Overlay_Tooltip',
content: '<b>' + Piwik_Overlay_Translations.domain + ':</b> ' +
piwikHelper.addBreakpointsToUrl(iframeDomain)
piwikHelper.addBreakpointsToUrl(iframeDomain),
show: false,
hide: false
});
}

Expand Down
16 changes: 12 additions & 4 deletions plugins/Transitions/templates/transitions.js
Expand Up @@ -245,7 +245,9 @@ Piwik_Transitions.prototype.preparePopover = function () {
return false;
},
items: '*',
tooltipClass: 'Transitions_Tooltip_Small'
tooltipClass: 'Transitions_Tooltip_Small',
show: false,
hide: false
});
};

Expand Down Expand Up @@ -390,7 +392,9 @@ Piwik_Transitions.prototype.addTooltipShowingPercentageOfAllPageviews = function
track: true,
content: tip,
items: '*',
tooltipClass: 'Transitions_Tooltip_Small'
tooltipClass: 'Transitions_Tooltip_Small',
show: false,
hide: false
});
};

Expand Down Expand Up @@ -984,7 +988,9 @@ Piwik_Transitions_Canvas.prototype.renderBox = function (params) {
track: true,
content: tip,
items: '*',
tooltipClass: 'Transitions_Tooltip_Small'
tooltipClass: 'Transitions_Tooltip_Small',
show: false,
hide: false
});
}
if (typeof params.onMouseOver == 'function') {
Expand Down Expand Up @@ -1013,7 +1019,9 @@ Piwik_Transitions_Canvas.prototype.renderBox = function (params) {
track: true,
content: params.curveTextTooltip,
items: '*',
tooltipClass: 'Transitions_Tooltip_Small'
tooltipClass: 'Transitions_Tooltip_Small',
show: false,
hide: false
});
}
}
Expand Down

0 comments on commit 6defcda

Please sign in to comment.