Changes between Version 2 and Version 3 of Ticket #28050, comment 1
- Timestamp:
- 04/29/2014 06:06:40 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28050, comment 1
v2 v3 5 5 1. Less javascript. Quick Edit only refreshes the single row, as you say. Sometimes a plugin has page/post list columns in other rows 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. 6 6 7 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. Maybe add js "hooks" to `wp-admin/js/inline-edit-post.js` by adding `trigger`'s. I guess now you can do jQuery `on()`'s for the right events, but js t iggers would be more explicit.7 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. Maybe add js "hooks" to `wp-admin/js/inline-edit-post.js` by adding `trigger`'s. I guess now you can do jQuery `on()`'s for the right events, but js triggers would be more explicit. 8 8 9 9 And like you say, this would be a worthy feature. Waiting for page loads is tiresome!