WordPress.org

Make WordPress Core

Opened 10 years ago

Last modified 4 months ago

#12826 new enhancement

AJAX trash posts

Reported by: meheranandk Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9
Component: Posts, Post Types Keywords: has-patch needs-refresh
Focuses: javascript Cc:
PR Number:

Description (last modified by nacin)

Add AJAX to trash posts, like comment moderation.

From GSoC ideas list:

Add AJAX Paging to Admin Screens. Something we've never gotten around to is adding AJAX paging to the list-type screens (edit.php, etc). Currently, getting to the next page of items means a screen refresh. For this project, add ajax paging to all the list-type screens in the WordPress admin. We have all the underlying PHP, but it needs some JavaScript love.

Attachments (2)

admin-ajax.js (1.4 KB) - added by meheranandk 10 years ago.
JS file for AJAX Trash. (Place in wp-admin/js directory)
ajax-trash.diff (1.6 KB) - added by meheranandk 10 years ago.
Patch to AJAXify Trash in edit.php (Include admin-ajax.js as well)

Download all attachments as: .zip

Change History (11)

@meheranandk
10 years ago

JS file for AJAX Trash. (Place in wp-admin/js directory)

@meheranandk
10 years ago

Patch to AJAXify Trash in edit.php (Include admin-ajax.js as well)

#1 @nacin
10 years ago

  • Component changed from General to Trash
  • Description modified (diff)
  • Summary changed from AJAXifying WP Admin Panel interface to AJAX trash posts
  • Version set to 2.9

#2 @aaroncampbell
10 years ago

  • Cc aaron@… added

What is the performance difference between:

current_element.parent().parent().parent().parent().children("th,td:not(.undo-trash)").each(function(){
  /*do something */
});

and

current_element.parents('tr').children("th,td:not(.undo-trash)").each(function(){
  /*do something */
});

I know the latter seems much more straight forward

#3 @solarissmoke
9 years ago

  • Keywords close added

Can this be closed to be dealt with in #14579 ?

#4 @scribu
8 years ago

  • Keywords close removed

Guess not.

#5 @SergeyBiryukov
8 years ago

  • Keywords has-patch needs-refresh added

#6 @SergeyBiryukov
7 years ago

#15489 was marked as a duplicate.

#7 @nacin
6 years ago

  • Component changed from Trash to Posts, Post Types

#8 @chriscct7
4 years ago

  • Focuses javascript added

#9 @galbaras
4 months ago

9 years this has been open. 9 year!

As a general rule, shouldn't all core list pages have a common user experience? If I can delete a plugin without reloading the page, why not approve, unapprove, spam or trash a comment?

Note: See TracTickets for help on using tickets.