Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
remotebuzzer: enable rotary control to access delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
jacques42 committed Mar 27, 2021
1 parent 6643036 commit 98d5acc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,11 @@ Shutdown --- GPIO 16 --- SW
```

Known limitations:
The following elements are currently not supported and not accessible through the rotary navigation
- Delete Picture: in order to be able to access the Delete button through rotary control, please activate admin setting General -> "Delete images without confirm request"

The following elements are currently not supported and not accessible through rotary control navigation
- Full Screen Mode button: Looks like modern browser only allow to change to full screen mode upon user gesture. It seems not possible to change to full-screen using Javascript.
- Photoswipe download button: Not needed for Rotary Control. (well, if you can come up with a decent use-case, let us know).
- Delete Picture

**************
Other Remote Trigger (experimental)
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<?php endif; ?>

<?php if ($config['picture']['allow_delete']): ?>
<a href="#" class="<?php echo $btnClass1; ?> deletebtn"><i class="fa fa-trash"></i> <span data-i18n="delete"></span></a>
<a href="#" class="<?php echo $btnClass1; ?> deletebtn <?php if ($config['delete']['no_request']){ echo 'rotaryfocus';} ?> "><i class="fa fa-trash"></i> <span data-i18n="delete"></span></a>
<?php endif; ?>
</div>

Expand Down
2 changes: 1 addition & 1 deletion template/pswp.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<?php endif; ?>

<?php if ($config['gallery']['allow_delete']): ?>
<button type="button" class="pswp__button pswp__button--delete" title="Delete"><i class="fa fa-trash"></i></button>
<button type="button" class="pswp__button pswp__button--delete <?php if ($config['delete']['no_request']){ echo 'rotaryfocus';} ?> " title="Delete"><i class="fa fa-trash"></i></button>
<?php endif; ?>

<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
Expand Down

0 comments on commit 98d5acc

Please sign in to comment.