Skip to content

Commit 50bdddb

Browse files
Update CSS selectors to update times/timezones for any elements with .time/.current-tz classes, not just span. Fixes ietf-tools#3485. Commit ready for merge.
- Legacy-Id: 19716
1 parent 8759955 commit 50bdddb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/static/ietf/js/agenda/agenda_timezone.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var get_current_tz_cb = function () {
1919

2020
// Initialize moments
2121
function initialize_moments() {
22-
var times=$('span.time')
22+
var times=$('.time')
2323
$.each(times, function(i, item) {
2424
item.start_ts = moment.unix(this.getAttribute("data-start-time")).utc();
2525
item.end_ts = moment.unix(this.getAttribute("data-end-time")).utc();
@@ -134,7 +134,7 @@ function format_tooltip(start, end) {
134134

135135
// Add tooltips
136136
function add_tooltips() {
137-
$('span.time').each(function () {
137+
$('.time').each(function () {
138138
var tooltip = $(format_tooltip(this.start_ts, this.end_ts));
139139
tooltip[0].start_ts = this.start_ts;
140140
tooltip[0].end_ts = this.end_ts;
@@ -146,8 +146,8 @@ function add_tooltips() {
146146

147147
// Update times on the agenda based on the selected timezone
148148
function update_times(newtz) {
149-
$('span.current-tz').html(newtz);
150-
$('span.time').each(function () {
149+
$('.current-tz').html(newtz);
150+
$('.time').each(function () {
151151
if (this.format == 4) {
152152
var tz = this.start_ts.tz(newtz).format(" z");
153153
if (this.start_ts.tz(newtz).dayOfYear() ==

0 commit comments

Comments
 (0)