Ticket #17959: wp-tabs.patch
File wp-tabs.patch, 4.8 KB (added by , 13 years ago) |
---|
-
wp-admin/css/wp-admin.dev.css
2890 2890 } 2891 2891 2892 2892 #post-body ul.category-tabs, 2893 #post-body ul.wp-tab-bar, 2893 2894 #post-body ul.add-menu-item-tabs { 2894 2895 float: left; 2895 2896 width: 120px; … … 2900 2901 } 2901 2902 2902 2903 #post-body ul.category-tabs li, 2904 #post-body ul.wp-tab-bar li, 2903 2905 #post-body ul.add-menu-item-tabs li { 2904 2906 padding: 8px; 2905 2907 } 2906 2908 2907 2909 #post-body ul.category-tabs li.tabs, 2910 #post-body ul.wp-tab-bar li.wp-tab-active, 2908 2911 #post-body ul.add-menu-item-tabs li.tabs { 2909 2912 -webkit-border-top-left-radius: 3px; 2910 2913 -webkit-border-bottom-left-radius: 3px; 2914 -webkit-border-top-right-radius: 0px; 2911 2915 border-top-left-radius: 3px; 2912 2916 border-bottom-left-radius: 3px; 2917 border-top-right-radius: 0px; 2913 2918 } 2914 2919 2915 2920 .wp-tab-panel, … … 2932 2937 max-height: 205px; 2933 2938 } 2934 2939 2935 div.tabs-panel-active { 2940 div.tabs-panel-active, 2941 div.wp-tab-panel-active { 2936 2942 display:block; 2937 2943 } 2938 2944 2939 div.tabs-panel-inactive { 2945 div.tabs-panel-inactive, 2946 div.wp-tab-panel-inactive { 2940 2947 display:none; 2941 2948 } 2942 2949 2943 2950 #post-body .categorydiv div.tabs-panel, 2951 #post-body div.wp-tab-panel, 2944 2952 .taxonomy div.tabs-panel, 2945 2953 #post-body #linkcategorydiv div.tabs-panel { 2946 2954 margin: 0 5px 0 125px; … … 2948 2956 2949 2957 .has-right-sidebar #side-sortables .category-tabs li, 2950 2958 #side-sortables .add-menu-item-tabs li, 2951 . wp-tab-bar li {2959 .has-right-sidebar #side-sortables .wp-tab-bar li { 2952 2960 display: inline; 2953 2961 line-height: 1.35em; 2954 2962 } 2955 2963 2964 .no-js #side-sortables .wp-tab-bar li.hide-if-no-js, 2956 2965 .no-js #side-sortables .category-tabs li.hide-if-no-js { 2957 2966 display: none; 2958 2967 } 2959 2968 2960 2969 #side-sortables .category-tabs a, 2961 2970 #side-sortables .add-menu-item-tabs a, 2962 .wp-tab-bar a {2971 #side-sortables .wp-tab-bar a { 2963 2972 text-decoration: none; 2964 2973 } 2965 2974 2975 #side-sortables .wp-tab-bar, 2966 2976 #side-sortables .category-tabs { 2967 2977 margin: 8px 0 3px; 2968 2978 } … … 2972 2982 } 2973 2983 2974 2984 #side-sortables .add-menu-item-tabs, 2975 .wp-tab-bar {2985 #side-sortables .wp-tab-bar { 2976 2986 margin-bottom: 3px; 2977 2987 } 2978 2988 … … 3033 3043 } 3034 3044 3035 3045 #post-body .category-tabs li.tabs, 3046 #post-body .wp-tab-bar li.wp-tab-active, 3036 3047 #post-body .add-menu-item-tabs li.tabs { 3037 3048 border-style: solid none solid solid; 3038 3049 border-width: 1px 0 1px 1px; … … 3305 3316 } 3306 3317 3307 3318 #post-body ul.category-tabs, 3319 #post-body ul.wp-tab-bar, 3308 3320 #post-body ul.add-menu-item-tabs { 3309 3321 float: left; 3310 3322 width: 120px; … … 3315 3327 } 3316 3328 3317 3329 #post-body ul.category-tabs li, 3330 #post-body ul.wp-tab-bar li, 3318 3331 #post-body ul.add-menu-item-tabs li { 3319 3332 padding: 8px; 3320 3333 } 3321 3334 3322 3335 #post-body ul.category-tabs li.tabs, 3336 #post-body ul.wp-tab-bar li.wp-tab-active, 3323 3337 #post-body ul.add-menu-item-tabs li.tabs { 3324 3338 -webkit-border-top-left-radius: 3px; 3325 3339 -webkit-border-bottom-left-radius: 3px; … … 3355 3369 } 3356 3370 3357 3371 #post-body .categorydiv div.tabs-panel, 3372 #post-body div.wp-tab-panel, 3358 3373 .taxonomy div.tabs-panel, 3359 3374 #post-body #linkcategorydiv div.tabs-panel { 3360 3375 margin: 0 5px 0 125px; … … 4393 4408 } 4394 4409 4395 4410 #post-body ul.category-tabs li.tabs a, 4411 #post-body ul.wp-tab-bar li.wp-tab-active a, 4396 4412 #post-body ul.add-menu-item-tabs li.tabs a, 4397 4413 #TB_window #TB_title a.tb-theme-preview-link, 4398 4414 #TB_window #TB_title a.tb-theme-preview-link:visited { -
wp-admin/js/wp-tabs.dev.js
1 jQuery(document).ready( function($) { 2 // wp tabs 3 $('.wp-tab-bar a').click(function(event){ 4 event.preventDefault(); 5 // Limit effect to the container element. 6 var context = $(this).closest('.wp-tab-bar').parent(); 7 $('.wp-tab-bar li', context).removeClass('wp-tab-active'); 8 $(this).closest('li').addClass('wp-tab-active'); 9 $('.wp-tab-panel', context).hide(); 10 $( $(this).attr('href'), context ).show(); 11 }); 12 // Make setting wp-tab-active optional. 13 $('.wp-tab-bar').each(function(){ 14 if ( $('.wp-tab-active', this).length ) 15 $('.wp-tab-active', this).click(); 16 else 17 $('a', this).first().click(); 18 }); 19 }); -
wp-includes/script-loader.php
305 305 306 306 $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), '20110524', 1 ); 307 307 308 $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20111009a', 1 ); 308 $scripts->add( 'wp-tabs', "/wp-admin/js/wp-tabs$suffix.js", array('jquery'), '20111110', 1 ); 309 $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable','wp-tabs'), '20111009a', 1 ); 309 310 310 311 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20110524', 1 ); 311 312 $scripts->localize( 'post', 'postL10n', array(