Skip to content

Commit

Permalink
[FIX] Scrolldown
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jan 16, 2024
1 parent 71313ca commit 8563f78
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/app/static/assets/js/iris/case.timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,12 @@ function to_page_up() {
}

function to_page_down() {
window.scrollTo(0,document.body.scrollHeight);
}
// Get last element ID of the timeline
let last_element_id = $('.timeline li:last > div').attr('id').replace('event_', '');

// Scroll to the last element
$('html').animate({ scrollTop: $('#event_'+last_element_id).offset().top - 80 });
}

function show_time_converter(){
$('#event_date_convert').show();
Expand Down

0 comments on commit 8563f78

Please sign in to comment.