From 1525a2a1e5bf1bc652ff79e8ba8c676c347930e2 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Tue, 18 Jun 2019 12:02:51 +0100 Subject: [PATCH] eslint: fix errors --- .eslintignore | 6 ++++++ lib/html/static/js/rosie-disco.js | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..4407b71a55 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +doc/* +lib/html/static/js/bootstrap.min* +lib/html/static/js/dataTables.bootstrap* +lib/html/static/js/jquery* +lib/html/static/js/livestamp.min.js +lib/html/static/js/moment.min.js diff --git a/lib/html/static/js/rosie-disco.js b/lib/html/static/js/rosie-disco.js index 11c7b68845..62825b9f8f 100644 --- a/lib/html/static/js/rosie-disco.js +++ b/lib/html/static/js/rosie-disco.js @@ -61,7 +61,6 @@ Rosie.query = function() { q_open_groups -= group1.length } q += "q=" + filter_list.join("+"); - var suffix = row.attr("id").substr(1); }); if ($("#query-all").attr("checked")) { q += "&all_revs=1" @@ -100,7 +99,6 @@ Rosie.query_remove = function() { Rosie.query_reset(); }; Rosie.query_groups_toggle = function (event_obj) { - var tbody = $("#query-table tbody"); var control = $("#show-groups"); var show_groups = null; if (event_obj == null) { @@ -116,7 +114,7 @@ Rosie.query_groups_toggle = function (event_obj) { else { show_groups = !control.hasClass("active"); } - $("#query-table > tbody > tr").each(function(i) { + $("#query-table > tbody > tr").each(function() { var row = $(this); var group0 = $(".q_group0", row); var group1 = $(".q_group1", row);