Skip to content
Snippets Groups Projects
Commit 57f4cb44 authored by Robert Lange's avatar Robert Lange Committed by André Lahmann
Browse files

refs #18118 [master] fix deleting favorites by keyboard

* add missing abort - option
* add href for focus
parent e84da8ee
No related merge requests found
...@@ -221,7 +221,7 @@ if ($cover): ...@@ -221,7 +221,7 @@ if ($cover):
<ul class="dropdown-menu" role="menu" aria-labelledby="<?= $dLabel ?>"> <ul class="dropdown-menu" role="menu" aria-labelledby="<?= $dLabel ?>">
<li> <li>
<?php /* #17711 give user feedback and dont reload page after deleting */ ?> <?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 ?>', '<?= $deleteUrl ?>',
{ {
'delete':'<?= $this->escapeJs($id) ?>', 'delete':'<?= $this->escapeJs($id) ?>',
...@@ -246,7 +246,7 @@ if ($cover): ...@@ -246,7 +246,7 @@ if ($cover):
<?= $this->transEsc('confirm_dialog_yes') ?> <?= $this->transEsc('confirm_dialog_yes') ?>
</a> </a>
</li> </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> </ul>
</div> </div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment