Ticket #5592 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Mass Select Users For Editing

Reported by: cpoteet Owned by: cpoteet
Priority: normal Milestone: 2.5
Component: Administration Version:
Severity: normal Keywords: has-patch, dev-feedback
Cc: ryan

Description

I noticed that you can't check a checkbox and select all users in a similar way to mass editing comments/links. I went about creating this. The file contains a new JS function for the user page, I refactored a JS function, and I edited the UI for the edit users page.

Now, when a user clicks the input checkbox it will select all users in that specific role for editing (and unchecking as well).

The only thing to note is when a user adds a user the Ajax response doesn't pass in a class name (which I made the role) which the JS functions depends on. So if a user adds a user and then tries to select all users under that role then it will omit the one user from the Ajax response. I tried editing admin-ajax, but I am so sick of working on this I hope someone else can do it.

Attachments

wpsvn.patch.diff Download (7.2 KB) - added by cpoteet 4 years ago.
Add Ability to Select Multiple Users
5592.diff Download (6.0 KB) - added by mdawaffe 4 years ago.
patch compatible with ajax adding

Change History

cpoteet4 years ago

Add Ability to Select Multiple Users

patch compatible with ajax adding

5592.diff

  1. Uses role ids rather than role names.
  2. Works with ajax added user rows.

comment:2   ryan4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [6570]) Mass select for users from cpoteet and mdawaffe. fixes #5592

Note: See TracTickets for help on using tickets.