Files
zoneminder/web/includes
IgorA100 94a1490066 HTML Helpers (htmlSelect / htmlOptions):
Added a reusable htmlAttributes() helper function to cleanly render arbitrary HTML attributes (such as title, data-*, and boolean attributes) on <select> and <option> elements without breaking backward compatibility.
Preserved existing htmlspecialchars() encoding flags (double_encode = false) to avoid double-encoding regressions.
-------------------------------------
Zone View (zone.php & Localization):
Replaced raw enum strings in the Zone Type dropdown with localized labels via translate() and added explanatory title tooltips for each zone type (Active, Inclusive, Exclusive, Preclusive, Inactive, Privacy).
Assigned semantic CSS classes (zone-type-*) to options and the initial <select> element.
-------------------------------------
Dynamic Styling (zone.js & Skin CSS):
Updated applyZoneType() to dynamically sync the selected option's color class with the <select> element on page load and change events (CSP-compliant, no inline JS).
Added theme-specific color rules for .zone-type-* across light and dark skins to ensure proper contrast and readability.
2026-11-17 23:40:00 +03:00
..