Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('admin_head-edit.php', 'not_working_quickedit');
- function not_working_quickedit()
- {
- ?>
- <script type="text/javascript">
- jQuery(document).ready(function () {
- jQuery("a.editinline").live("click", function () {
- var ilc_qe_id = inlineEditPost.getId(this);
- // the following works if dispatched from Chrome Console, but not here... the ID is correct
- var aaa = jQuery('#edit-'+ilc_qe_id+' select[name="_status"] option[value="pending"]').remove();
- console.log(ilc_qe_id);
- });
- jQuery('#doaction, #doaction2').click(function (e) {
- // suposedly this is the Bulk Edit, but ain't firing
- var n = jQuery(this).attr('id').substr(2);
- console.log('I am not firing...:(');
- });
- });
- </script>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement