mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixes the broken explain GUI test case.
2) Displays a tooltip "Click for details..." on hover over explain plan nodes. refs #5488
This commit is contained in:
committed by
Akshay Joshi
parent
850afd7402
commit
57a2559f11
@@ -947,7 +947,10 @@ define('pgadmin.misc.explain', [
|
||||
IMAGE_WIDTH,
|
||||
IMAGE_HEIGHT
|
||||
);
|
||||
image.attr({style: 'cursor: pointer'});
|
||||
image.attr({
|
||||
style: 'cursor: pointer',
|
||||
class: 'image-node',
|
||||
});
|
||||
|
||||
// Draw tooltip
|
||||
var image_data = this.toJSON(),
|
||||
@@ -1478,6 +1481,10 @@ define('pgadmin.misc.explain', [
|
||||
}
|
||||
});
|
||||
});
|
||||
container.find('.image-node').tooltip({
|
||||
title: gettext('Click for details...'),
|
||||
template: '<div class="tooltip" role="tooltip"><div class="arrow d-none"></div><div class="tooltip-inner"></div></div>',
|
||||
});
|
||||
});
|
||||
|
||||
_renderExplainTable(ctx._explainTable, explainTable);
|
||||
|
Reference in New Issue
Block a user