Skip to content

Commit

Permalink
Eliminate duplicated jQuery selector (not really duplicated, but it k…
Browse files Browse the repository at this point in the history
…eeps the IDE happy).
  • Loading branch information
campbell-m committed May 29, 2024
1 parent 1509444 commit d279019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/js/refresh.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,13 @@ function(result){
?>
getFirstNonZeroSlotSize: function() {
var slotSize;
var table = $('#day_main');

<?php
if ($times_along_top)
{
?>
$('#day_main').find('thead th').not('.first_last').each(function () {
table.find('thead th').not('.first_last').each(function () {
slotSize = $(this).outerWidth();
if (slotSize)
{
Expand All @@ -190,7 +192,7 @@ function(result){
else
{
?>
$('#day_main').find('tbody tr').each(function () {
table.find('tbody tr').each(function () {
slotSize = $(this).outerHeight();
if (slotSize)
{
Expand Down

0 comments on commit d279019

Please sign in to comment.