Advertisement
brasofilo

WPSE_56551

Jun 26th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2. add_action('admin_head-edit.php', 'not_working_quickedit');
  3.  
  4. function not_working_quickedit()
  5. {
  6.     ?>
  7. <script type="text/javascript">
  8.     jQuery(document).ready(function () {
  9.         jQuery("a.editinline").live("click", function () {
  10.             var ilc_qe_id = inlineEditPost.getId(this);
  11.             // the following works if dispatched from Chrome Console, but not here... the ID is correct
  12.             var aaa = jQuery('#edit-'+ilc_qe_id+' select[name="_status"] option[value="pending"]').remove();  
  13.             console.log(ilc_qe_id);
  14.                
  15.         });
  16.  
  17.         jQuery('#doaction, #doaction2').click(function (e) {
  18.             // suposedly this is the Bulk Edit, but ain't firing
  19.             var n = jQuery(this).attr('id').substr(2);
  20.             console.log('I am not firing...:(');
  21.         });
  22.     });
  23. </script>
  24.     <?php
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement