Opened 16 years ago
Closed 15 years ago
#7957 closed defect (bug) (wontfix)
Consolidate table header actions code, allow filtering of actions
Reported by: | DD32 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.7 |
Component: | UI | Keywords: | needs-patch dev-feedback |
Focuses: | Cc: |
Description
The attached patch consolidates all the <select name="action">
code into a function print_table_actions()
which also allows the filtering of the actions.
My primary motivation was due to me personally not liking the dropdown lists, esp. when theres usually only one or 2 actions in the table. Allowing filtering allows a plugin to step in and replace it with buttons (Which i've also attached)
Plugins which add actions, will have to hook in on load-$pagenow
and perform their actions there i believe.
Attachments (3)
Change History (8)
#1
@
16 years ago
Theres probably a better way to deal with some of the params of the function really. I somewhat doubt its needed to include them all, but i'm unsure
#2
@
16 years ago
(Patch will be refreshed upon request, With a better streamlined arg list if anyone actually goes for it.)
Plugin which replaces selects with buttons