Changeset 8700

Show
Ignore:
Timestamp:
08/21/08 06:42:19 (3 months ago)
Author:
markjaquith
Message:

Consolidate our hide-if-no-js CSS/jQuery stuff. Now, just: hide-if-js, hide-if-no-js. Simple, easy to remember.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-form-advanced.php

    r8697 r8700  
    208208<ul id="category-tabs"> 
    209209    <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 
    210     <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 
     210    <li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 
    211211</ul> 
    212212 
  • trunk/wp-admin/edit-link-form.php

    r8697 r8700  
    7272<ul id="category-tabs"> 
    7373    <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li> 
    74     <li class="wp-no-js-hidden"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 
     74    <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 
    7575</ul> 
    7676 
  • trunk/wp-admin/includes/widgets.php

    r8600 r8700  
    263263                <?php if ( $control ) : ?> 
    264264 
    265                 <a class="widget-action widget-control-save wp-no-js-hidden edit alignleft" href="#save:<?php echo $id_format; ?>"><?php _e('Change'); ?></a> 
     265                <a class="widget-action widget-control-save hide-if-no-js edit alignleft" href="#save:<?php echo $id_format; ?>"><?php _e('Change'); ?></a> 
    266266 
    267267                <?php endif; ?> 
  • trunk/wp-admin/js/common.js

    r8691 r8700  
    33    jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300); 
    44 
    5     // Reveal 
    6     jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' ); 
    7      
    85    // show things that should be visible, hide what should be hidden 
    9     jQuery('.hide-if-no-js').show(); 
     6    jQuery('.hide-if-no-js').removeClass('hide-if-no-js'); 
    107    jQuery('.hide-if-js').hide(); 
    118 
  • trunk/wp-admin/wp-admin.css

    r8697 r8700  
    15701570/* Global classes */ 
    15711571.wp-hidden-children .wp-hidden-child { display: none; } 
    1572 .wp-no-js-hidden { display: none; } 
    15731572.ui-tabs-hide { display: none; } 
    15741573