aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-08-07 09:43:44 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-08-08 10:36:32 +0200
commit84703843efa493db952b119a1fd63a1b37bd3891 (patch)
tree48a18fdefbdc561803e35295be7f90706591ff35 /templates/sidebar
parent86366e92e6cd8585ace1ef0098d3c9baa8f050cd (diff)
actually reset search on courses admin page, fixes #4460
Closes #4460 Merge request studip/studip!3245
Diffstat (limited to 'templates/sidebar')
-rw-r--r--templates/sidebar/search-widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/sidebar/search-widget.php b/templates/sidebar/search-widget.php
index c314673..e475f00 100644
--- a/templates/sidebar/search-widget.php
+++ b/templates/sidebar/search-widget.php
@@ -33,7 +33,7 @@
<?= Icon::create('decline')->asInput([
'title' => _('Suche zurücksetzen'),
'class' => 'reset-search',
- 'onclick' => "document.getElementById('needle-".$hash."').value = ''; this.remove();"
+ 'onclick' => "document.getElementById('needle-".$hash."').value = ''; this.remove();" . ($onclear ?? ''),
]) ?>
<? else : ?>
<a class="reset-search" href="<?= $reset_link ?>" tabindex="0" role="button"