Allow tab intents in plugin/theme editors. Utilizes the Tabby jQuery plugin, see #12204

git-svn-id: https://develop.svn.wordpress.org/trunk@13131 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-14 02:14:59 +00:00
parent fa61e1409d
commit b38b545ed4
5 changed files with 262 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ $parent_file = 'plugins.php';
wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'plugin'));
wp_admin_css( 'theme-editor' );
wp_enqueue_script( 'tabby' );
$plugins = get_plugins();
@@ -229,7 +230,7 @@ foreach ( $plugin_files as $plugin_file ) :
/* <![CDATA[ */
jQuery(document).ready(function($){
$('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); });
$('#newcontent').scrollTop( $('#scrollto').val() );
$('#newcontent').scrollTop( $('#scrollto').val() ).tabby();
});
/* ]]> */
</script>