Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiments: Select/Unselect All when dealing with large-ish list of files #2289

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

stoyan
Copy link
Contributor

@stoyan stoyan commented Aug 23, 2022

Addressing issue #2285

When more than 7 checkboxes are shown, add select all and unselect all

Demo:
https://user-images.githubusercontent.com/51308/186279184-31f887ea-9429-4a7f-b125-6ce60b2abe7d.mp4

@stoyan
Copy link
Contributor Author

stoyan commented Aug 23, 2022

The magic number 7 is pulled out of thin air, happy to change to a better informed choice

@@ -641,14 +649,26 @@ function updateTestRunTotal(){
$("form.experiments_grades").on("change input submit", updateCount );

// add add buttons
$(".experiment_pair_value-add").after("<button type='button' class='experiment_pair_value_addbtn'>Add more</button>").next().on("click", function(){ $(this).before($(this).prev().clone());});
$(".experiment_pair_value-add").after("<button type='button' class='experiment_pair_value_addbtn'>Add more</button>").next().on("click", function(){ $(this).before($(this).prev().clone());});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look at all this jquery in the wild

@stoyan stoyan merged commit 9cc53a5 into master Aug 24, 2022
@stoyan stoyan deleted the checkall branch August 24, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants