Revisions
- July 16, 2012 @ 04:48:07 [Current Revision] by PeterLugg
- July 16, 2012 @ 04:47:01 by PeterLugg
- July 16, 2012 @ 03:55:40 by PeterLugg
- July 16, 2012 @ 03:55:07 by PeterLugg
Revision Differences
July 16, 2012 @ 04:47:01 | Current Revision | ||
---|---|---|---|
Content | |||
Unchanged: Taken from here: <a href="http:// wordpress.stackexchange.com/ a/58081/13712" target="_blank" >http://wordpress.stackexchange.com/ a/58081/13712</a> | Unchanged: Taken from here: <a href="http:// wordpress.stackexchange.com/ a/58081/13712" target="_blank" >http://wordpress.stackexchange.com/ a/58081/13712</a> | ||
Unchanged: [php] | Unchanged: [php] | ||
Unchanged: <code>add_ action('admin_head', 'wpse_13671_script_enqueuer'); | Unchanged: <code>add_ action('admin_head', 'wpse_13671_script_enqueuer'); | ||
Unchanged: function wpse_13671_script_enqueuer() { | Unchanged: function wpse_13671_script_enqueuer() { | ||
Unchanged: global $current_screen; | Unchanged: global $current_screen; | ||
Unchanged: /** | Unchanged: /** | ||
Unchanged: * /wp-admin/edit.php?post_type=page | Unchanged: * /wp-admin/edit.php?post_type=page | ||
Unchanged: */ | Unchanged: */ | ||
Unchanged: if('edit-page' == $current_screen->id) | Unchanged: if('edit-page' == $current_screen->id) | ||
Unchanged: { | Unchanged: { | ||
Unchanged: ?> | Unchanged: ?> | ||
Unchanged: <script type="text/ javascript"> | Unchanged: <script type="text/ javascript"> | ||
Unchanged: jQuery(document).ready( function($) { | Unchanged: jQuery(document).ready( function($) { | ||
Unchanged: $("a.editinline" ).live(" click", function () { | Unchanged: $("a.editinline" ).live(" click", function () { | ||
Unchanged: var ilc_qe_id = inlineEditPost.getId(this); | Unchanged: var ilc_qe_id = inlineEditPost.getId(this); | ||
Unchanged: setTimeout(function() { | Unchanged: setTimeout(function() { | ||
Unchanged: $('#edit-'+ilc_qe_id+' select[name=" page_template"] option[value= "showcase.php" ]').remove(); | Unchanged: $('#edit-'+ilc_qe_id+' select[name=" page_template"] option[value= "showcase.php" ]').remove(); | ||
Unchanged: }, 100); | Unchanged: }, 100); | ||
Unchanged: }); | Unchanged: }); | ||
Unchanged: $('#doaction, #doaction2').live( "click", function () { | Unchanged: $('#doaction, #doaction2').live( "click", function () { | ||
Unchanged: setTimeout(function() { | Unchanged: setTimeout(function() { | ||
Unchanged: $('#bulk-edit select[name=" page_template"] option[value= "showcase.php" ]').remove(); | Unchanged: $('#bulk-edit select[name=" page_template"] option[value= "showcase.php" ]').remove(); | ||
Unchanged: }, 100); | Unchanged: }, 100); | ||
Unchanged: }); | Unchanged: }); | ||
Unchanged: }); | Unchanged: }); | ||
Unchanged: </script> | Unchanged: </script> | ||
Unchanged: <?php | Unchanged: <?php | ||
Unchanged: } | Unchanged: } | ||
Unchanged: /** | Unchanged: /** | ||
Unchanged: * /wp-admin/post.php?post= 21&action=edit | Unchanged: * /wp-admin/post.php?post= 21&action=edit | ||
Unchanged: */ | Unchanged: */ | ||
Unchanged: if( 'page' == $current_screen->id ) | Unchanged: if( 'page' == $current_screen->id ) | ||
Unchanged: { | Unchanged: { | ||
Unchanged: ?> | Unchanged: ?> | ||
Unchanged: <script type="text/ javascript"> | Unchanged: <script type="text/ javascript"> | ||
Unchanged: jQuery(document).ready( function($) { | Unchanged: jQuery(document).ready( function($) { | ||
Unchanged: $('#page_template option[value= "showcase.php" ]').remove(); | Unchanged: $('#page_template option[value= "showcase.php" ]').remove(); | ||
Unchanged: }); | Unchanged: }); | ||
Unchanged: </script> | Unchanged: </script> | ||
Unchanged: <?php | Unchanged: <?php | ||
Unchanged: } | Unchanged: } | ||
Unchanged: }</code> | Unchanged: }</code> | ||
Unchanged: [/php] | Unchanged: [/php] | ||
Deleted: |
Note: Spaces may be added to comparison text to allow better line wrapping.
No comments yet.