mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-28 23:57:30 +09:00
* fix(ui): pin explanation tooltips on click * fix(ui): avoid duplicate tooltip pin handlers * fix(js): replace deprecated jQuery APIs with modern equivalents * fix(ui): restore decimal-safe numeric parsing in zoom deserialize * chore(vendor): bump tablesorter and jquery-validation assets * test(e2e): add jquery vendor smoke coverage with playwright
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
<?php
|
|
/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2004-2026 The Cacti Group |
|
|
+-------------------------------------------------------------------------+
|
|
| Cacti: The Complete RRDtool-based Graphing Solution |
|
|
+-------------------------------------------------------------------------+
|
|
*/
|
|
|
|
$layout = file_get_contents(__DIR__ . '/../../include/layout.js');
|
|
|
|
if ($layout === false) {
|
|
fwrite(STDERR, "unable to read include/layout.js\n");
|
|
exit(1);
|
|
}
|
|
|
|
$needles = array(
|
|
".on('click.cactiTooltipPin', 'div.cactiTooltipHint, span.cactiTooltipHint'",
|
|
"target.data('cacti-tooltip-pinned', true);",
|
|
"$(document).tooltip('open', $.Event('mouseover', {",
|
|
".on('click.cactiTooltipPinDismiss', function (event) {",
|
|
"tooltip = tooltipId ? $('#' + tooltipId) : $();"
|
|
);
|
|
|
|
foreach ($needles as $needle) {
|
|
if (strpos($layout, $needle) === false) {
|
|
fwrite(STDERR, "missing integration behavior: $needle\n");
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
print "issue5540 tooltip pin integration regression passed\n";
|