Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1634 closed defect (bug) (fixed)

Admin interface should be more friendly and less time consuming [AJAX]

Reported by: mdawaffe's profile mdawaffe Owned by: mdawaffe's profile mdawaffe
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords: AJAX JS admin bg|has-patch bg|2nd-opinion
Focuses: Cc:

Description

The admin panels that consist largely of tables or lists of data can be made more dynamic with some happy AJAX. Ideally, both adding new items and deleting pre-existing ones should be done on the fly without a page reload.

The attached patch allows for on the fly deletion of posts, pages, categories, comments, moderated comments, links and link categories. Complete with pretty colors.

TODO: Addition of categories, links and link cats (will wait until links get overhauled).

TODO: Wrap HTML calls to JS in if statements to prevent loading of superfluous content on pages that don't need it.

NOTE: New PHP file does not check_admin_referer()!

Attachments (2)

list-manipulation1.diff (22.2 KB) - added by mdawaffe 20 years ago.
grab trs or lis from id="the-list" or "the-list-x" ("x" for "extra" - splices some bits off). Do things with them.
list-manipulation2.diff (928 bytes) - added by mdawaffe 20 years ago.
item is bad juju in IE JS

Download all attachments as: .zip

Change History (9)

@mdawaffe
20 years ago

grab trs or lis from id="the-list" or "the-list-x" ("x" for "extra" - splices some bits off). Do things with them.

#1 @mdawaffe
20 years ago

  • Keywords bg|has-patch bg|2nd-opinion added

#2 @mdawaffe
20 years ago

  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

#3 @markjaquith
20 years ago

Great idea!

Does it have no-JS fallback?

It'd be great to be able to go through comments and do stuff like "Set as spam" or "Approve" on the fly.

Also, we could add post_meta on the fly.

#4 @mdawaffe
20 years ago

It should fall back on no-JS and on no-AJAX.

post_meta and the like will likely happen eventually. This ticket will just track addition/deletion from the above lists.

@mdawaffe
20 years ago

item is bad juju in IE JS

#5 @mdawaffe
20 years ago

list-manipulation2.diff makes list deletion compatible with IE.

As an aside, I titled this ticket miserably :)

#6 @matt
20 years ago

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

(In [2862]) Fix for IE from Michael, fixes #1634

#7 @(none)
19 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.