477ad70d93
Added a beautiful and user-friendly image viewer GLightbox support to the Event page ( #5352 )
...
* Added GLightbox support to the Event page
* Fix arrow function syntax in skin.js
* Fix Eslint new-cap
* fix: snapshot and objdetect links on the event page
The class attribute ended up inside the href, so both links pointed at
?view=image&eid=N&fid=snapshot class= (404) and had no glightbox class.
Set the type and title on each link with data-type/data-title, which
GLightbox reads directly.
refs #5352
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* fix: set up GLightbox in event.js, keep page keys out of the viewer
The library loads only on the event page, so set it up there instead of
initPageGeneral(), scoped to #frames. Its titles go through innerHTML;
they stay fixed strings.
While the viewer is open (body.glightbox-open), the event page's keydown
handler returns: arrows moved to another event, Space toggled playback
and Delete opened the delete confirmation behind it.
refs #5352
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* We won’t complicate the markup; instead, we’ll leave all the processing to JS. (event.php)
* We continue to initialize GLightbox globally within initPageGeneral().
Prefer data-title, falling back to the link's title and then the nested image's title.
Strip HTML markup from the selected title before passing it to GLightbox.
* We continue to initialize GLightbox globally within initPageGeneral().
* The check for an open GLightbox instance has been moved to a separate function, which is also called within `handleKeydownGeneral(evt)`.
* - Use `escapeHTML(title)` instead of `strip_html(title)`.
- Safely initialize GLightbox, dispatch a readiness event on success, and log initialization errors.
- When opening a GLightbox window, pause playback if it was currently playing.
* Removed extra space
* Add isLightboxOpen mock to event-view-state test
* Refactor Filter class to include id property
---------
Co-authored-by: Nic Boet <nic@boet.cc >
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-26 08:05:45 -05:00
..
2026-11-25 17:56:29 -05:00
2026-11-18 00:30:43 +05:30
2026-11-16 13:06:18 +05:30
2026-11-21 23:51:09 +05:30
2026-11-16 03:10:32 +05:30
2026-09-20 18:17:43 -05:00
2026-09-13 10:37:02 -04:00
2026-11-08 15:01:42 +05:30
2026-11-22 06:37:30 +05:30
2026-11-25 20:42:00 -05:00
2026-11-22 21:19:17 +05:30
2026-11-23 08:47:29 -05:00
2026-11-14 19:03:45 +05:30
2026-11-18 12:59:57 +05:30
2026-10-28 18:01:25 -05:00
2026-11-16 11:34:20 +05:30
2026-11-15 23:36:09 +05:30
2026-11-23 08:47:03 -05:00
2026-11-23 23:03:08 -05:00
2026-11-14 22:47:56 +05:30
2026-11-14 22:47:56 +05:30
2026-11-17 03:53:41 +05:30
2026-11-16 01:54:01 +05:30
2026-11-17 03:58:11 +05:30
2026-11-15 09:47:15 +05:30
2026-11-19 12:36:10 +05:30
2026-11-21 23:27:39 +05:30
2026-11-20 16:38:36 +05:30
2026-11-21 22:43:44 +05:30
2026-11-22 21:06:12 +05:30
2026-10-11 10:28:01 -04:00
2026-11-24 08:39:50 -05:00
2026-11-18 14:54:17 +05:30
2026-11-22 21:11:18 +05:30
2026-10-28 23:51:38 -05:00
2026-11-20 15:03:20 +05:30
2026-11-22 00:43:16 +05:30
2026-11-19 12:30:38 +05:30
2026-11-26 08:05:45 -05:00
2026-11-05 20:18:13 -05:00
2026-11-05 20:18:13 -05:00
2026-11-19 12:28:19 +05:30
2026-11-05 19:55:35 -05:00
2026-11-25 18:02:48 -05:00
2026-11-25 18:02:48 -05:00
2026-08-31 17:40:09 +05:30
2026-11-21 22:05:41 +05:30
2026-11-19 10:58:05 +05:30
2026-11-18 12:27:33 +05:30
2026-11-14 22:47:56 +05:30
2026-11-23 23:02:26 -05:00
2026-11-23 08:45:38 -05:00
2026-11-25 18:29:47 -05:00
2026-11-16 13:10:09 +05:30
2026-11-16 01:10:55 +05:30
2026-11-14 17:37:51 +05:30
2026-11-15 23:39:59 +05:30
2026-11-21 23:52:55 +05:30
2026-11-19 10:49:16 +05:30
2026-11-21 12:39:55 +05:30
2026-11-04 18:30:49 -05:00
2026-11-16 12:09:27 +05:30
2026-11-16 03:25:22 +05:30
2026-11-18 12:35:01 +05:30
2026-11-23 08:50:29 -05:00
2026-11-14 19:09:33 +05:30
2026-11-21 22:50:26 +05:30
2026-11-25 20:29:27 -05:00
2026-11-14 21:16:19 +05:30
2026-11-19 10:45:43 +05:30
2026-11-16 08:51:22 +05:30
2026-11-19 12:43:42 +05:30
2026-11-14 21:16:19 +05:30
2026-10-05 18:34:04 -04:00
2026-11-20 13:01:41 +05:30
2026-11-16 01:09:10 +05:30
2026-11-19 12:31:23 +05:30
2026-11-19 11:14:12 +05:30
2026-09-20 18:17:44 -05:00
2026-11-16 11:58:23 +05:30
2026-11-18 23:34:03 +05:30
2026-11-21 22:51:29 +05:30
2026-11-25 08:45:50 -05:00
2026-11-19 12:41:10 +05:30
2026-11-20 12:11:39 +05:30
2026-11-14 22:47:56 +05:30
2026-11-14 22:47:56 +05:30
2026-11-23 08:49:33 -05:00
2026-11-14 22:47:56 +05:30
2026-11-21 23:27:08 +05:30
2026-11-21 22:59:33 +05:30
2026-11-19 08:55:14 +05:30
2026-11-14 19:03:45 +05:30
2026-11-16 11:55:53 +05:30
2026-11-20 11:41:39 +05:30
2026-11-23 23:04:05 -05:00
2026-11-21 22:57:05 +05:30
2026-11-23 08:47:51 -05:00
2026-11-19 12:29:32 +05:30
2026-10-28 18:01:26 -05:00
2026-11-14 23:55:50 +05:30
2026-11-16 11:55:53 +05:30
2026-11-17 08:21:59 +05:30
2026-11-23 08:45:52 -05:00
2026-11-16 01:47:37 +05:30
2026-11-14 17:37:51 +05:30
2026-10-05 18:36:33 -04:00
2026-11-25 20:35:15 -05:00
2026-08-09 16:11:29 -04:00
2026-11-14 18:22:32 +05:30
2026-11-20 18:44:03 +03:00
2026-09-12 15:51:14 -04:00
2026-11-19 10:55:38 +05:30
2026-11-14 18:22:31 +05:30
2026-11-17 09:00:27 +05:30
2026-11-22 21:00:10 +05:30
2026-11-14 22:54:00 +05:30
2026-11-14 22:54:01 +05:30
2026-11-14 22:54:01 +05:30
2026-11-25 18:28:18 -05:00
2026-11-20 14:49:29 +05:30
2026-11-21 23:09:38 +05:30
2026-11-14 22:54:00 +05:30
2026-11-16 13:01:58 +05:30
2026-11-23 23:03:11 -05:00
2026-11-25 17:51:37 -05:00
2026-11-23 23:04:52 -05:00
2026-11-21 22:08:25 +05:30
2026-11-16 10:46:26 +05:30
2026-11-23 08:46:30 -05:00
2026-11-16 11:31:08 +05:30
2026-11-21 12:39:55 +05:30
2026-11-21 23:26:36 +05:30
2026-11-22 00:01:19 +05:30
2026-11-23 23:04:10 -05:00
2026-11-22 00:01:19 +05:30
2026-11-21 22:15:10 +05:30
2026-11-19 12:47:11 +05:30
2026-11-24 19:10:53 -05:00
2026-11-16 01:51:21 +05:30
2026-11-22 06:39:39 +05:30
2026-11-14 19:02:12 +05:30
2026-11-18 18:39:25 +05:30
2026-11-16 16:36:10 +05:30
2026-11-22 11:55:50 +05:30
2026-11-21 23:17:56 +05:30
2026-11-25 08:33:55 -05:00
2026-11-17 09:00:09 +05:30
2026-11-17 09:00:18 +05:30
2026-11-22 00:08:03 +05:30
2026-11-23 08:47:42 -05:00
2026-11-19 10:58:55 +05:30
2026-11-16 03:10:32 +05:30
2026-11-15 23:17:05 +05:30
2026-11-18 00:17:35 +05:30
2026-11-16 13:22:11 +05:30
2026-11-23 23:02:11 -05:00
2026-11-22 06:40:32 +05:30
2026-11-19 11:10:45 +05:30
2026-08-05 06:43:11 -04:00
2026-08-12 22:48:20 -04:00
2026-11-16 11:38:41 +05:30
2026-11-19 12:44:05 +05:30
2026-11-21 21:59:25 +05:30
2026-11-15 23:33:30 +05:30
2026-11-19 12:38:20 +05:30
2026-11-15 23:27:38 +05:30
2026-11-19 12:42:45 +05:30
2026-11-24 19:11:30 -05:00
2026-11-18 00:30:56 +05:30
2026-11-19 12:42:08 +05:30
2026-11-15 23:29:26 +05:30
2026-11-19 13:11:42 +05:30
2026-11-19 12:45:32 +05:30
2026-11-16 03:10:32 +05:30
2026-11-21 23:37:53 +05:30
2026-11-14 19:02:06 +05:30
2026-11-20 13:02:37 +05:30
2026-11-21 22:13:58 +05:30
2026-11-20 15:20:31 +05:30
2026-11-16 03:10:32 +05:30
2026-11-19 12:59:40 +05:30
2026-11-17 02:25:56 +05:30
2026-11-17 20:46:31 -05:00
2026-11-25 08:38:11 -05:00
2026-11-21 03:31:42 +05:30
2026-11-14 18:27:24 +05:30
2026-09-13 11:51:26 -04:00
2026-11-19 12:39:39 +05:30
2026-11-21 22:13:51 +05:30
2026-11-14 18:27:23 +05:30
2026-11-14 18:27:24 +05:30
2026-11-17 20:46:31 -05:00
2026-11-14 18:27:23 +05:30
2026-11-24 19:40:49 -05:00
2026-11-16 12:39:28 +05:30
2026-11-22 00:34:54 +05:30
2026-11-14 18:27:23 +05:30
2026-11-21 22:11:43 +05:30
2026-11-14 18:27:22 +05:30
2026-11-21 23:49:43 +05:30
2026-11-14 18:27:22 +05:30
2026-11-14 18:27:23 +05:30
2026-11-17 20:46:31 -05:00
2026-11-20 10:51:45 +05:30
2026-11-25 08:09:19 -05:00
2026-11-14 18:27:23 +05:30
2026-11-22 01:01:45 +05:30
2026-11-14 18:30:08 +05:30
2026-11-16 11:26:05 +05:30
2026-11-15 16:27:40 -05:00
2026-11-14 18:25:45 +05:30
2026-11-25 18:06:24 -05:00
2026-11-14 18:25:45 +05:30
2026-11-21 22:20:19 +05:30
2026-11-14 18:25:45 +05:30
2026-11-25 08:46:09 -05:00
2026-11-21 12:39:55 +05:30
2026-11-14 18:30:09 +05:30