[Pkg-nagios-devel] Bug#810015: pnp4nagios-web: jquery in status-header.ssi fails to display graph popups
satnights at dynarec.net
Tue Jan 5 15:50:47 UTC 2016
i have been a bit tardy in observing this breakage, but it appears that
graph popups no longer appear when the mouse cursor is hovered over the
"extra service actions" in at least nagios3.
checking a browser's developer console, the error "TypeError: $.browser
is undefined" is generated when hovering over the actions.
$.browser has been deprecated for a period of time in jquery's 1.x
branch, and has finally been removed in 1.9.x. [the version of jquery
that is within the pnp4nagios-web package appears to be 1.11.3.
an interim measure is to insert a line like the following, after the
other jquery-*.js includes within status-header.ssi:
this file restores deprecated APIs, and warns about their usage within
a developer console. it does not have to be linked externally...it can
be saved alongside the rest of pnp4nagios-web's jquery scripts, then
this is only a mitigation of an issue within jquery.cluetip.js.
upstream is no longer maintained for that script, and it depends on
the use of $.browser. until pnp4nagios-web no longer makes use of
jquery.cluetip.js, the jquery-migrate script will probably have to be
i understand that the status-header.ssi file is categorized as an
"example", but at this time, it isn't a working example.
More information about the Pkg-nagios-devel