From ce267c7e3c4b6f8bc30bf129ddd3182aca540200 Mon Sep 17 00:00:00 2001 From: Ben Dailey Date: Tue, 15 Feb 2022 13:00:26 -0500 Subject: [PATCH] Most programmatic images are lazy. --- web/ajax/events.php | 2 +- web/ajax/snapshots.php | 2 +- web/ajax/watch.php | 2 +- web/includes/functions.php | 4 ++-- web/skins/classic/views/console.php | 2 +- web/skins/classic/views/frame.php | 1 + web/skins/classic/views/timeline.php | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web/ajax/events.php b/web/ajax/events.php index c95b404c4..28512dfd1 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -275,7 +275,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&'); // Modify the row data as needed - $row['imgHtml'] = 'Event '.$event->Id().''; + $row['imgHtml'] = 'Event '.$event->Id().''; $row['Name'] = validHtmlStr($row['Name']); $row['Archived'] = $row['Archived'] ? translate('Yes') : translate('No'); $row['Emailed'] = $row['Emailed'] ? translate('Yes') : translate('No'); diff --git a/web/ajax/snapshots.php b/web/ajax/snapshots.php index d122e8a9f..c01e2ddbb 100644 --- a/web/ajax/snapshots.php +++ b/web/ajax/snapshots.php @@ -200,7 +200,7 @@ function queryRequest($search, $advsearch, $sort, $offset, $order, $limit) { $scale = intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width()); $imgSrc = $event->getThumbnailSrc(array(), '&'); - $row['imgHtml'] .= 'Event '.$event->Id().''; + $row['imgHtml'] .= 'Event '.$event->Id().''; } $row['Name'] = validHtmlStr($row['Name']); $row['Description'] = validHtmlStr($row['Description']); diff --git a/web/ajax/watch.php b/web/ajax/watch.php index e8c551643..367ab45c3 100644 --- a/web/ajax/watch.php +++ b/web/ajax/watch.php @@ -62,7 +62,7 @@ foreach ( $rows as $row ) { 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&'); // Modify the row data as needed - $row['imgHtml'] = 'Event '.$event->Id().''; + $row['imgHtml'] = 'Event '.$event->Id().''; $row['Name'] = validHtmlStr($row['Name']); $row['StartDateTime'] = strftime(STRF_FMT_DATETIME_SHORTER, strtotime($row['StartDateTime'])); $row['Length'] = gmdate('H:i:s', $row['Length'] ); diff --git a/web/includes/functions.php b/web/includes/functions.php index bfa4b9746..9ee3f68be 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -264,7 +264,7 @@ function getImageStreamHTML( $id, $src, $width, $height, $title='' ) { if ( canStreamIframe() ) { return '