We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ccfc3c commit d1b2b5bCopy full SHA for d1b2b5b
1 file changed
app/assets/javascripts/annotations.js
@@ -288,10 +288,6 @@ var highlightLines = function (highlight) {
288
});
289
};
290
291
-$("#highlightLongLines").click(function () {
292
- highlightLines(this.checked);
293
-});
294
-
295
function displayAnnotations() {
296
297
$(".annotation-line").not(".base-annotation-line").remove();
@@ -305,6 +301,10 @@ function displayAnnotations() {
305
301
}
306
302
307
303
function attachEvents() {
304
+ $("#highlightLongLines").click(function () {
+ highlightLines(this.checked);
+ });
+
308
var status = $('#highlightLongLines')[0].checked;
309
highlightLines(status);
310
0 commit comments