From 57f4cb443d5a017e8d19889a9efff9ef31826a8d Mon Sep 17 00:00:00 2001 From: Robert Lange <robert.lange@uni-leipzig.de> Date: Thu, 30 Jul 2020 15:26:52 +0200 Subject: [PATCH] refs #18118 [master] fix deleting favorites by keyboard * add missing abort - option * add href for focus --- .../templates/RecordDriver/DefaultRecord/list-entry.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml index f0bbc18324d..9980b4f5709 100644 --- a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml +++ b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml @@ -221,7 +221,7 @@ if ($cover): <ul class="dropdown-menu" role="menu" aria-labelledby="<?= $dLabel ?>"> <li> <?php /* #17711 give user feedback and dont reload page after deleting */ ?> - <a title="<?= $this->transEsc('confirm_delete_brief') ?>" onClick="$.post( + <a href="javascript:document.getElementById('<?=$dLabel?>').focus();" title="<?= $this->transEsc('confirm_delete_brief') ?>" onClick="$.post( '<?= $deleteUrl ?>', { 'delete':'<?= $this->escapeJs($id) ?>', @@ -246,7 +246,7 @@ if ($cover): <?= $this->transEsc('confirm_dialog_yes') ?> </a> </li> - <li><a href="#"><?= $this->transEsc('confirm_dialog_no') ?></a></li> + <li><a href="javascript:document.getElementById('<?=$dLabel?>').focus();"><?=$this->transEsc('confirm_dialog_no')?></a></li> </ul> </div> -- GitLab