Skip to content
Snippets Groups Projects
Commit ee64ac76 authored by Benjamin Fiorini's avatar Benjamin Fiorini
Browse files

cockpit : small change in JS

parent c80ca26e
Branches
Tags
No related merge requests found
......@@ -897,9 +897,9 @@ $(document).ready(function () {
$('select.auto-refresh').val(defaultRefreshRate);
/****************************
* Display Metric details *
****************************/
/***********************************************
* Display Metric details : tooltip & popover *
***********************************************/
var popoverOptionsMetricDetails = {
placement : 'right',
// here we need a function, to be called each time a display is asked
......@@ -914,9 +914,13 @@ $(document).ready(function () {
});
// tooltip on info button
var tooltipMetricDetailsOptions = {
title : 'Metric details (press to open/close)'
title : 'Metric details (click to open/close)'
};
$('img.metric-info-button').tooltip(tooltipMetricDetailsOptions);
// remove tooltip after click on info-button
$('body').on('click', 'img.metric-info-button', function() {
$(this).tooltip('toggle');
});
/*****************************
* Hide all series button *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment