Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/assets/javascripts/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,6 @@ var highlightLines = function (highlight) {
});
};

$("#highlightLongLines").click(function () {
highlightLines(this.checked);
});

function displayAnnotations() {

$(".annotation-line").not(".base-annotation-line").remove();
Expand All @@ -305,6 +301,10 @@ function displayAnnotations() {
}

function attachEvents() {
$("#highlightLongLines").click(function () {
highlightLines(this.checked);
});

var status = $('#highlightLongLines')[0].checked;
highlightLines(status);

Expand Down