diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index 1c215b24c..23ac931e3 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -65,10 +65,10 @@ const padeditor = (function () { } } // Listen for clicks on sidediv items - $outerdoc.find('#sidedivinner').on('click', 'div', function() { - const lineNumber = $(this).index() + 1; - window.location.hash = 'L' + lineNumber; - }) + $outerdoc.find('#sidedivinner').on('click', 'div', function () { + const targetLineNumber = $(this).index() + 1; + window.location.hash = `L${targetLineNumber}`; + }); readyFunc(); }