Allow tab to intent in plugin/theme editors. Reverts first pass, [13131]. Props azaozz, fixes #12204

git-svn-id: https://develop.svn.wordpress.org/trunk@13191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-18 05:14:48 +00:00
parent 13584938e1
commit 4d65e83ef9
7 changed files with 26 additions and 264 deletions

View File

@@ -18,7 +18,6 @@ $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();
@@ -230,7 +229,7 @@ foreach ( $plugin_files as $plugin_file ) :
/* <![CDATA[ */
jQuery(document).ready(function($){
$('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); });
$('#newcontent').scrollTop( $('#scrollto').val() ).tabby();
$('#newcontent').scrollTop( $('#scrollto').val() );
});
/* ]]> */
</script>