quick edit not working on dashboard
-
Hi, I’m developing a community blog installation with WPMU/Buddypress and I’ve decided to add a dashboard widget in the main blog to display pending posts in the community blog so editors can simply click and publish the pending posts. I’ve added a post type in the main blog and created a management panel using the WP edit functions.
So everything looks fine, except that the “quick edit” link is not displaying the quick edit box even though the “hidden” information is in the source.
So I’ve checked for differences with edit.php and I realized that the js-file “inline-edit-post” is not automatically included with the admin index.php. So, following advice from this thread (https://www.ads-software.com/support/topic/274674), I’ve added this code –
function my_enqueue($hook) { if ($hook == 'index.php') { wp_enqueue_script('inline-edit-post','DOMAIN/wp-admin/js/inline-edit-post.js', array('jquery')); } } add_action('admin_enqueue_scripts','my_enqueue',10,1);
And while it gets enqueued, the behaviour is not as intended. Instead of displaying the quick edit box, clicking on the link will simply make the current entry’s row disappear (display:none, per firebug). I’ve looked at the code but I can’t find the problem. It seems only the first half of the quick edit process is executed, and I suppose that has something to do with something that is missing on index.php/the dashboard and is loaded on edit.php, but I don’t know what that could be.
Am I making a fundamental mistake somewhere? Thanks for any help!
- The topic ‘quick edit not working on dashboard’ is closed to new replies.