mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-29 08:06:58 +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.0 KiB
PHP
33 lines
1.0 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);
|
|
}
|
|
|
|
if (strpos($layout, 'var pinnedTooltipElement = null;') === false) {
|
|
fwrite(STDERR, "missing pinned tooltip state\n");
|
|
exit(1);
|
|
}
|
|
|
|
if (strpos($layout, 'function clearPinnedTooltip() {') === false) {
|
|
fwrite(STDERR, "missing pinned tooltip clear helper\n");
|
|
exit(1);
|
|
}
|
|
|
|
if (strpos($layout, "target.removeData('cacti-tooltip-pinned');") === false) {
|
|
fwrite(STDERR, "missing pinned tooltip reset\n");
|
|
exit(1);
|
|
}
|
|
|
|
print "issue5540 tooltip pin unit regression passed\n";
|