Files
zoneminder/web/js
Isaac ConnorandClaude Opus 5 9f69694f67 fix: define the bootstrap-table icons before the view scripts refs #5153
icons is the toolbar icon map that thirteen view scripts, and logpanel.js,
pass to bootstrapTable(). It was defined in skin.js, which xhtmlFooter()
loads last of all, after every view's own script. A client that loads the
whole page is fine, because skin.js still runs before DOMContentLoaded,
but one that stops short -- a crawler that caps resource loading, an
aborted load -- runs the view's ready handler against an undefined icons
and the table never initialises:

  Uncaught ReferenceError: icons is not defined
      at HTMLDocument.initPage (.../views_js_console-....js:458:12)

Move it to web/js/table-helpers.js, which already exists to hold what the
bootstrap-table views share and is loaded well before them, and export it
alongside the other helpers for the node tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-26 11:23:38 -04:00
..
2022-01-20 11:49:59 -05:00