WordPress.org

Make WordPress Core

Changeset 13131


Ignore:
Timestamp:
02/14/10 02:14:59 (4 years ago)
Author:
nacin
Message:

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

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r12848 r13131  
    1919 
    2020wp_admin_css( 'theme-editor' ); 
     21wp_enqueue_script( 'tabby' ); 
    2122 
    2223$plugins = get_plugins(); 
     
    230231jQuery(document).ready(function($){ 
    231232    $('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); }); 
    232     $('#newcontent').scrollTop( $('#scrollto').val() ); 
     233    $('#newcontent').scrollTop( $('#scrollto').val() ).tabby(); 
    233234}); 
    234235/* ]]> */ 
  • trunk/wp-admin/theme-editor.php

    r12752 r13131  
    1919 
    2020wp_admin_css( 'theme-editor' ); 
     21wp_enqueue_script( 'tabby' ); 
    2122 
    2223$themes = get_themes(); 
     
    233234jQuery(document).ready(function($){ 
    234235    $('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); }); 
    235     $('#newcontent').scrollTop( $('#scrollto').val() ); 
     236    $('#newcontent').scrollTop( $('#scrollto').val() ).tabby(); 
    236237}); 
    237238/* ]]> */ 
  • trunk/wp-includes/script-loader.php

    r13092 r13131  
    156156    $scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20090125'); 
    157157    $scripts->add_data( 'suggest', 'group', 1 ); 
     158 
     159    $scripts->add( 'tabby', "/wp-includes/js/jquery/tabby$suffix.js", array('jquery'), '0.12'); 
     160    $scripts->add_data( 'tabby', 'group', 1 ); 
    158161 
    159162    $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m'); 
Note: See TracChangeset for help on using the changeset viewer.