Wanted to use the module for mass deletion of terms.

However, there seems to be no "Select All" option. This could really be useful with 100+ terms.

Comments

mh86’s picture

yes, definitely

brandy.brown’s picture

agreed. I did see a patch for this function for Drupal 6 in another post ...

mh86’s picture

klonos’s picture

Title: Select all » Taxonomy Manager: Add a 'Select all' feature.

...better title for our dashboards ;)

mh86’s picture

Status: Active » Fixed

I added two icons to the top of tree for selecting all visible checkboxes and for removing the selection, quite a useful feature.
I took the fastest approach for implementing it, maybe it could be done nicer (both user interface and implementation), so looking for feedback.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

serjas’s picture

You can use a simple script like this
$("form input[type='checkbox']").attr ( "checked" , true );

nachenko’s picture

Issue summary: View changes

serjas, your solution would apply if the whole tree was loaded at once, but this is not the case, the different levels are being loaded via AJAX on click. Select all is actually a very complex feature that needs to launch all these AJAX requests, then select all.

The following snippet in console unfolds the tree in full if run several times (as many as max tree depth)

jQuery("#taxonomy-manager-tree .expandable > .hitArea, #taxonomy-manager-tree .lastExpandable > .hitArea").trigger('click');

Then you can run your snippet (adapted):

jQuery("#taxonomy-manager-tree input[type='checkbox']").attr("checked", true);