From 1a577d53bd414c963253ac5f2e9176f41fe25d32 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 8 Dec 2020 15:49:41 +0000 Subject: [PATCH] smell resolve --- src/static/js/pad_editor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); }