diff --git a/changedetectionio/static/js/diff-render.js b/changedetectionio/static/js/diff-render.js index e96680ece..fd2078f02 100644 --- a/changedetectionio/static/js/diff-render.js +++ b/changedetectionio/static/js/diff-render.js @@ -43,6 +43,21 @@ $(document).ready(function () { // Jump at start inputs.current = 0; + + // For nice mouse-over hover/title information + const removed_current_option = $('#diff-version option:selected') + if (removed_current_option) { + $('del').each(function () { + $(this).prop('title', 'Removed '+removed_current_option[0].label); + }); + } + const inserted_current_option = $('#current-version option:selected') + if (removed_current_option) { + $('ins').each(function () { + $(this).prop('title', 'Inserted '+inserted_current_option[0].label); + }); + } + next_diff(); }