0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-13 08:31:44 +00:00
healthchecks_healthchecks/static/js/initialize-timezone-selects.js
2022-06-29 11:45:50 +03:00

8 lines
No EOL
261 B
JavaScript

$(function() {
var timezones = document.getElementById("all-timezones").textContent;
$("select[name=tz]").selectize({
labelField: "value",
searchField: ["value"],
options: timezones.split(",").map(tz => ({value: tz}))
});
});