Skip to content

Commit

Permalink
minor fix slideshow
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Jul 2, 2024
1 parent 064b2be commit 8964655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/lib_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def progress(self, TransferMode=None, SyncOutputLine='', CountProgress=None):
self.CountProgress += 1
self.CountJustCopied += 1

elif SyncOutputLine.endswith(': Unchanged skipping'):
self.CountProgress += 1

if not self.TIMSCopied:
self.TIMSCopied = 'tims/' in SyncOutputLine

elif SyncOutputLine.endswith(': Unchanged skipping'):
self.CountProgress += 1

elif TransferMode == 'gphoto2':
if SyncOutputLine[0:6] == 'Saving' or SyncOutputLine[0:4] == 'Skip':
self.CountProgress += 1
Expand Down
4 changes: 2 additions & 2 deletions scripts/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function navigator($view_mode, $imagecount, $filter_images_per_page, $select_off
} else {
// $view_mode="single"
?>
<input type="hidden" name="slideshow_next_link" id="slideshow_next_link" value="<?php echo ($IMAGE_ID_POST < $IMAGE_ID_LAST ? $GET_PARAMETER . "&ID=" . $IMAGE_ID_POST : $GET_PARAMETER . "&ID=" . $IMAGE_ID_FIRST); ?>">
<input type="hidden" name="slideshow_next_link" id="slideshow_next_link" value="<?php echo ($IMAGE_ID_POST == 0 ? $GET_PARAMETER . "&ID=" . $IMAGE_ID_FIRST : $GET_PARAMETER . "&ID=" . $IMAGE_ID_POST); ?>">

<div class="card" style="margin-top: 2em;display: inline-block;width: 100%">
<div style="float:left;width: 50%;padding: 5px;">
Expand All @@ -140,7 +140,7 @@ function navigator($view_mode, $imagecount, $filter_images_per_page, $select_off

<div style="float:right;width: 50%;padding: 5px;">
<?php echo L::view_slideshow_header; ?>
<select style="margin-top: 0;" onchange="slideshow_run()" name="slideshow_timer" id="slideshow_timer">
<select style="margin-top: 0;" onchange="slideshow_run()" id="slideshow_timer">
<option value="-" <?php echo ($slideshow_timer=='-'?'selected':''); ?>>-</option>
<?php
$slideshow_options = array('1', '2', '3', '4', '5');
Expand Down

0 comments on commit 8964655

Please sign in to comment.