Consolidate our hide-if-no-js CSS/jQuery stuff. Now, just: hide-if-js, hide-if-no-js. Simple, easy to remember.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fdced29e0a
commit
e0f519adc5
|
@ -207,7 +207,7 @@ function post_categories_meta_box($post) {
|
|||
?>
|
||||
<ul id="category-tabs">
|
||||
<li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
|
||||
<li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
|
||||
<li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
|
||||
|
|
|
@ -71,7 +71,7 @@ function link_categories_meta_box($link) { ?>
|
|||
|
||||
<ul id="category-tabs">
|
||||
<li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
|
||||
<li class="wp-no-js-hidden"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
|
||||
<li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div id="categories-all" class="ui-tabs-panel">
|
||||
|
|
|
@ -262,7 +262,7 @@ function wp_widget_control( $sidebar_args ) {
|
|||
|
||||
<?php if ( $control ) : ?>
|
||||
|
||||
<a class="widget-action widget-control-save wp-no-js-hidden edit alignleft" href="#save:<?php echo $id_format; ?>"><?php _e('Change'); ?></a>
|
||||
<a class="widget-action widget-control-save hide-if-no-js edit alignleft" href="#save:<?php echo $id_format; ?>"><?php _e('Change'); ?></a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
|
@ -2,11 +2,8 @@ jQuery(document).ready( function() {
|
|||
// pulse
|
||||
jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
|
||||
|
||||
// Reveal
|
||||
jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
|
||||
|
||||
// show things that should be visible, hide what should be hidden
|
||||
jQuery('.hide-if-no-js').show();
|
||||
jQuery('.hide-if-no-js').removeClass('hide-if-no-js');
|
||||
jQuery('.hide-if-js').hide();
|
||||
|
||||
// Basic form validation
|
||||
|
|
|
@ -1569,7 +1569,6 @@ td.post-title p {
|
|||
|
||||
/* Global classes */
|
||||
.wp-hidden-children .wp-hidden-child { display: none; }
|
||||
.wp-no-js-hidden { display: none; }
|
||||
.ui-tabs-hide { display: none; }
|
||||
|
||||
.commentlist .avatar {
|
||||
|
|
Loading…
Reference in New Issue