From 9f7df0af76e9e43fda08292d02b4573f0144a520 Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Tue, 9 Aug 2016 13:13:50 +0200 Subject: [PATCH] Fix checkbox in experiment reports --- .../new/modal/_project_contents.html.erb | 2 +- .../modal/_project_contents_inner.html.erb | 22 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/views/reports/new/modal/_project_contents.html.erb b/app/views/reports/new/modal/_project_contents.html.erb index 56dbce308..f5b9a2193 100644 --- a/app/views/reports/new/modal/_project_contents.html.erb +++ b/app/views/reports/new/modal/_project_contents.html.erb @@ -67,7 +67,7 @@ projectCheckAlls.click(function() { var nextUl = $(this).closest("div.checkbox").next(); if (nextUl.length && nextUl.is("ul.project-contents-list, \ - ul-experiment-contents-list")) { + ul.experiment-contents-list")) { nextUl.find("input:checkbox").prop("checked", this.checked); } }); diff --git a/app/views/reports/new/modal/_project_contents_inner.html.erb b/app/views/reports/new/modal/_project_contents_inner.html.erb index 6372ad462..ca5ce46f1 100644 --- a/app/views/reports/new/modal/_project_contents_inner.html.erb +++ b/app/views/reports/new/modal/_project_contents_inner.html.erb @@ -9,6 +9,7 @@ <%= form.check_box :project, label: project.name, class: "project-all-cb" %> <% else %>