Skip to content

Commit

Permalink
MDL-74635 tag: add select all/none tags for bulk actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Sep 12, 2022
1 parent c6211a6 commit 31cccc6
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/amd/build/tag.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/amd/build/tag.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/amd/src/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ define([
$("#tag-management-delete").click(function(e) {
var form = $(this).closest('form').get(0);

var cnt = $(form).find("input[type=checkbox]:checked").length;
var cnt = $(form).find("input[data-togglegroup='tags-manage'][data-toggle='slave']:checked").length;
if (!cnt) {
return;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ define([

e.preventDefault();
var form = $(this).closest('form').get(0);
var tags = $(form).find("input[type=checkbox]:checked");
var tags = $(form).find("input[data-togglegroup='tags-manage'][data-toggle='slave']:checked");

if (tags.length <= 1) {
str.get_strings([
Expand Down
Loading

0 comments on commit 31cccc6

Please sign in to comment.