You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Use form_selectable_cell(), get_colored_device_status() to show device status with a tooltips, such as below, it shows ok, but after click the brower refresh button, the tooltips will never show up again.
Tooltips do not work, To Reproduce
Steps to reproduce the behavior:
Call cacti API form_selectable_cell() and get_colored_device_status() with title parameter to show device status with tooltips.
Move mouse on to the status, tooltips show up, it's ok
Click browser refresh, then move mouse on to the status, tooltips never show up.
Expected behavior
A clear and concise description of what you expected to happen.
Use form_selectable_cell(), get_colored_device_status() to show device status with a tooltips, always be ok.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Firefox and Chrome.
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
In cacti 1.2.x
Additional context
Add any other context about the problem here.
After check the Jquery code ./cacti/include/js/jquery-ui.js, the title of the parent will be cleaned. as below,
// Kill parent tooltips, custom or native, for hover
if ( event && event.type === "mouseover" ) {
target.parents().each( function() {
..........
if ( parent.attr( "title" ) ) {
parent.uniqueId();
that.parents[ this.id ] = {
element: this,
title: parent.attr( "title" )
};
parent.attr( "title", "" );
}
} );
}
When span with title has a child span, the tooltips will not work well. Because the event target is the child span, and the title of the parent span will be not cleaned up. So, we'd not set the tooltip items too aggressive. I think we can change the code as below,
Describe the bug
A clear and concise description of what the bug is.
Use form_selectable_cell(), get_colored_device_status() to show device status with a tooltips, such as below, it shows ok, but after click the brower refresh button, the tooltips will never show up again.
Tooltips do not work,
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Use form_selectable_cell(), get_colored_device_status() to show device status with a tooltips, always be ok.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Firefox and Chrome.
Smartphone (please complete the following information):
In cacti 1.2.x
Additional context
Add any other context about the problem here.
After check the Jquery code ./cacti/include/js/jquery-ui.js, the title of the parent will be cleaned. as below,
// Kill parent tooltips, custom or native, for hover
if ( event && event.type === "mouseover" ) {
target.parents().each( function() {
..........
if ( parent.attr( "title" ) ) {
parent.uniqueId();
that.parents[ this.id ] = {
element: this,
title: parent.attr( "title" )
};
parent.attr( "title", "" );
}
} );
}
When span with title has a child span, the tooltips will not work well. Because the event target is the child span, and the title of the parent span will be not cleaned up. So, we'd not set the tooltip items too aggressive. I think we can change the code as below,
The text was updated successfully, but these errors were encountered: