Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
AO3-5234 Moderate Works #3162
Conversation
elzj
and others
added some commits
Nov 10, 2017
| @@ -21,4 +23,24 @@ $j(document).ready(function(){ | ||
| $j(ticky).prop("checked", false); | ||
| }); | ||
| }); | ||
| + $j("#spam_all_select").click(function() { |
| @@ -21,4 +23,24 @@ $j(document).ready(function(){ | ||
| $j(ticky).prop("checked", false); | ||
| }); | ||
| }); | ||
| + $j("#spam_all_select").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='spam[]']").each(function(index, ticky) { |
| @@ -21,4 +23,24 @@ $j(document).ready(function(){ | ||
| $j(ticky).prop("checked", false); | ||
| }); | ||
| }); | ||
| + $j("#spam_all_select").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='spam[]']").each(function(index, ticky) { | ||
| + $j(ticky).prop("checked", true); |
| + $j(ticky).prop("checked", true); | ||
| + }); | ||
| + }); | ||
| + $j("#spam_all_deselect").click(function() { |
| + }); | ||
| + }); | ||
| + $j("#spam_all_deselect").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='spam[]']").each(function(index, ticky) { |
| + }); | ||
| + $j("#spam_all_deselect").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='spam[]']").each(function(index, ticky) { | ||
| + $j(ticky).prop("checked", false); |
| + $j(ticky).prop("checked", false); | ||
| + }); | ||
| + }); | ||
| + $j("#ham_all_select").click(function() { |
| + }); | ||
| + }); | ||
| + $j("#ham_all_select").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='ham[]']").each(function(index, ticky) { |
| + }); | ||
| + $j("#ham_all_select").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='ham[]']").each(function(index, ticky) { | ||
| + $j(ticky).prop("checked", true); |
| + $j(ticky).prop("checked", true); | ||
| + }); | ||
| + }); | ||
| + $j("#ham_all_deselect").click(function() { |
| + }); | ||
| + }); | ||
| + $j("#ham_all_deselect").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='ham[]']").each(function(index, ticky) { |
| + }); | ||
| + $j("#ham_all_deselect").click(function() { | ||
| + $j("#spam_works").find(":checkbox[name='ham[]']").each(function(index, ticky) { | ||
| + $j(ticky).prop("checked", false); |
| @@ -0,0 +1,22 @@ | ||
| +require "spec_helper" |
| + | ||
| + describe ".processed_bulk_ids" do | ||
| + it "removes conflicting ids" do | ||
| + params = { spam: [1,2,3], ham: [2,4,6] } |
| + it "removes conflicting ids" do | ||
| + params = { spam: [1,2,3], ham: [2,4,6] } | ||
| + results = ModeratedWork.processed_bulk_ids(params) | ||
| + expect(results).to eq({ spam: [1,3], ham: [4,6] }) |
| + end | ||
| + it "doesn't error when params are missing" do | ||
| + results = ModeratedWork.processed_bulk_ids({}) | ||
| + expect(results).to eq({ spam: [], ham: [] }) |
elzj
added some commits
Nov 16, 2017
sarken
approved these changes
Nov 17, 2017
All comments/questions covered in chat -- merging!
sarken
added
the
Reviewed: Ready to Merge
label
Nov 17, 2017
sarken
merged commit 58528f4
into
otwcode:master
Nov 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
elzj commentedNov 16, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5234
Purpose
Testing
See issue