#37973 closed defect (bug) (fixed)
When searching installed plugins "select all" checkbox fails
Reported by: | corradomatt | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Plugins | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
When on the plugin list page (installed plugins) and searching for a set of plugins the "select all" checkboxes above and below the list of plugins do not work to select all plugins in the search results.
Attachments (3)
Change History (17)
#1
@
8 years ago
- Focuses javascript added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.7
- Owner set to afercia
- Status changed from new to assigned
- Version 4.6.1 deleted
#2
@
8 years ago
- Keywords shiny-updates added
- Owner changed from afercia to swissspidy
- Version set to 4.6
Oh well, after the introduction of Shiny Updates v2 in 4.6 the plugins search is now via AJAX so I guess the events need to be delegated.
This ticket was mentioned in Slack in #core by afercia. View the logs.
8 years ago
#4
@
8 years ago
- Keywords has-patch added; needs-patch removed
The attached patch just delegates the click event on the body.
#5
@
8 years ago
Ah, yeah..I noticed that the refresh fixed it too. Thanks for the quick reply @afercia
#6
@
8 years ago
- Keywords commit added
Patch works as expected.
I was going to say that this needs to be added to the themes list table in the network admin as well, but it looks like we didn't implement Ajax search there. Something for a new ticket (any volunteers?).
#7
@
8 years ago
Hi all,
Thanks for the patch. Tested it and it is working. Great work.
Will let you know if there is anything else that is needing work on :)
Cheers. N
#8
follow-up:
↓ 9
@
8 years ago
- Keywords needs-patch added; shiny-updates has-patch commit removed
Looks like $('tbody').children().children('.check-column').find(':checkbox').click( function(e) {}
needs also to be delegated.
#9
in reply to:
↑ 8
;
follow-up:
↓ 10
@
8 years ago
Replying to ocean90:
Looks like
$('tbody').children().children('.check-column').find(':checkbox').click( function(e) {}
needs also to be delegated.
Hm if I get it correctly that block of JS is meant to invert the selection, right? I was unaware this functionality even existed and it seems it's not communicated in the UI interface in any way. Unless I'm missing something, I'd be in favour of removing it entirely.
#10
in reply to:
↑ 9
;
follow-up:
↓ 11
@
8 years ago
Replying to afercia:
Replying to ocean90:
Looks like
$('tbody').children().children('.check-column').find(':checkbox').click( function(e) {}
needs also to be delegated.
Hm if I get it correctly that block of JS is meant to invert the selection, right? I was unaware this functionality even existed and it seems it's not communicated in the UI interface in any way. Unless I'm missing something, I'd be in favour of removing it entirely.
That code is used for checking the boxes in combination with pressing the shift key, e.g. when clicking the 1st and shift-clicking the 5th item afterwards, checkboxes 2-4 will be checked as well.
#11
in reply to:
↑ 10
@
8 years ago
Replying to swissspidy:
That code is used for checking the boxes in combination with pressing the shift key, e.g. when clicking the 1st and shift-clicking the 5th item afterwards, checkboxes 2-4 will be checked as well.
Ah that too, right! It also inverts the current selection when shift-clicking on the "Select All" checkboxes (no ;) )
Wondering how many users are aware of this
@corradomatt thanks for your report and welcome to Trac! Yep, confirmed. Looks like after refreshing the search results page, then it works.