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

remotebuzzer: enable rotary control to access delete button #221

Merged
merged 1 commit into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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