diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-06 13:46:32 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-06 13:46:32 +0000 |
| commit | 9598fe46153f85317dea26ffbd6222e61e792589 (patch) | |
| tree | bade0e248054c4d45ac173070bcd336c2949a803 /resources/assets/javascripts/bootstrap/application.js | |
| parent | d38b0a19c204aface71ae6c39581346a8ad83887 (diff) | |
update and adjust eslint, fixes #4967
Closes #4967
Merge request studip/studip!3730
Diffstat (limited to 'resources/assets/javascripts/bootstrap/application.js')
| -rw-r--r-- | resources/assets/javascripts/bootstrap/application.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/resources/assets/javascripts/bootstrap/application.js b/resources/assets/javascripts/bootstrap/application.js index 4ad248f..97e0fd2 100644 --- a/resources/assets/javascripts/bootstrap/application.js +++ b/resources/assets/javascripts/bootstrap/application.js @@ -125,19 +125,18 @@ STUDIP.domReady(function () { } $(this).showAjaxNotification().data('busy', true); - var that = this; - $.get($(this).attr('href'), function (response) { - var row = $('<tr />').addClass('loaded-details'); + $.get($(this).attr('href'), response => { + const row = $('<tr />').addClass('loaded-details'); $('<td />') - .attr('colspan', $(that).closest('td').siblings().length + 1) + .attr('colspan', $(this).closest('td').siblings().length + 1) .html(response) .appendTo(row); - $(that) + $(this) .hideAjaxNotification() .closest('tr').after(row); - $(that).data('busy', false); + $(this).data('busy', false); $('body').trigger('ajaxLoaded'); $('a.load-in-new-row').attr('aria-expanded', 'true'); @@ -241,7 +240,7 @@ eventBus.on('studip:set-locale', () => { STUDIP.domReady(function () { - $(document).on('click', 'a.print_action', function (event) { + $(document).on('click', 'a.print_action', function () { var url_to_print = this.href; $('<iframe/>', { name: url_to_print, |
