[wp-trac] [WordPress Trac] #28050: Consider using Backbone Views for List Table updates

WordPress Trac noreply at wordpress.org
Tue Apr 29 18:01:14 UTC 2014


#28050: Consider using Backbone Views for List Table updates
----------------------------+-----------------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript, administration
----------------------------+-----------------------------------------

Comment (by kitchin):

 For plugin authors, post/page Quick Edit is already difficult to hook
 into, have to keep that in mind. (Even if you think you've got it,
 something comes up like <select> elements needing a setTimeout(...,0)
 trick to populate.) So making the whole table and navigation  etc.
 features load by js would be tough.

 I see two enhancements needed, one less js and one more js:

 1. Less javascript. Quick Edit only refreshes the single row, as you say.
 Sometimes a plugin has page/post list columns that really need an update
 after QuickEdit. So I propose a boolean hook that says "reload the table,
 don't refresh the row." When switched on, it would change the ajax
 "Update" button to a normal form submit ('get' unfortunately). That's only
 possible now by hooking into `wp_redirect`, after recreating a lot of the
 Quick Edit code and using a new button (or fooling the js by modding the
 DOM), as far as I know. A normal form submit would reload the whole table
 of course.

 2. More javascript. Populate everything dynamically, as you propose, but
 add a filter to disable it, so plugin authors can choose to avoid writing
 tricky js to replicate what they've already written in php for creating
 the view, and for validating saves.

 And like you say, this would be a worthy feature. Waiting for page loads
 is tiresome!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28050#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list