WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/27/2008 12:18:38 PM (12 years ago)
Author:
azaozz
Message:

Faster hide-if-no-js, if-js-closed, etc. needed when loading scripts in the footer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r10172 r10258  
    7373do_action('admin_head');
    7474
    75 if ( $is_iphone ) { ?>
     75wp_print_styles('no-js');
     76?>
     77<script type="text/javascript">
     78(function(){
     79    var nojs = document.getElementById('no-js');
     80    nojs.parentNode.removeChild(nojs);
     81})();
     82</script>
     83
     84<?php if ( $is_iphone ) { ?>
    7685<style type="text/css">.row-actions{visibility:visible;}</style>
    7786<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.