Opened 17 years ago
Closed 17 years ago
#5631 closed defect (bug) (fixed)
Cannot easily remove popular category from a post
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
To Reproduce:
- Edit a post that is categorized under some "Most Used" category. Let's assume that category is called "Bartleby".
- Uncheck "Bartleby" from "All Categories".
- Save and Continue Editing.
- Notice that the post still has category Bartleby.
In the above example, Bartleby is still checked under "Most Used".
Attached syncs the two checklists:
- Most Used checklist starts with nothing checked and is hidden from users without JS.
- On load, the Most Used checklist is synced with the normal checklist.
- Whenever a checkbox is checked, that checkbox is synced between the two checklists.
- Most Used cats added by AJAX (can happen if adding a sub cat or typing the name of the cat in the AJAX input rather than looking for the checkbox) are told to sync as well.
- Only the checkboxes from the "All Categories" list are sent when saving a post.
Attached introduces:
- New CSS class:
wp-no-js-hidden
which is set todisplay: none;
. On load, the class is removed from all elements via JS.
Also Fixes:
- Add new category "submit" link now a button.
- Parent Category Dropdown selectedIndex bug.
Attachments (2)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [6597]) Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631