aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/bootstrap/article.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-06 13:46:32 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-06 13:46:32 +0000
commit9598fe46153f85317dea26ffbd6222e61e792589 (patch)
treebade0e248054c4d45ac173070bcd336c2949a803 /resources/assets/javascripts/bootstrap/article.js
parentd38b0a19c204aface71ae6c39581346a8ad83887 (diff)
update and adjust eslint, fixes #4967
Closes #4967 Merge request studip/studip!3730
Diffstat (limited to 'resources/assets/javascripts/bootstrap/article.js')
-rw-r--r--resources/assets/javascripts/bootstrap/article.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/assets/javascripts/bootstrap/article.js b/resources/assets/javascripts/bootstrap/article.js
index 04316f5..f0aad6e 100644
--- a/resources/assets/javascripts/bootstrap/article.js
+++ b/resources/assets/javascripts/bootstrap/article.js
@@ -4,7 +4,7 @@
$(document).on('click', 'article.studip.toggle header h1 a', function (e) {
e.preventDefault();
- var article = $(this).closest('article');
+ const article = $(this).closest('article');
// If the contentbox article is new send an ajax request
if (article.hasClass('new') && article.data('visiturl')) {
@@ -17,7 +17,7 @@
});
// Open closed article contents when location hash matches
- $(window).on('hashchange', (event) => {
+ $(window).on('hashchange', () => {
const hash = location.hash.split('#').pop();
$(`article.studip.toggle:not(.open) header h1 a[name="${hash}"]`).click();
});