Remove no-js.css, add the styles to admin-header instead

git-svn-id: https://develop.svn.wordpress.org/trunk@10529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-02-09 13:50:35 +00:00
parent 8f2083b8da
commit 99b02478a9
3 changed files with 6 additions and 18 deletions

View File

@@ -60,12 +60,15 @@ do_action('admin_head');
?>
<noscript>
<?php wp_print_styles('no-js'); ?>
<style type="text/css">
.hide-if-no-js{display:none}
.hide-if-js,.closed .inside{display:block}
</style>
</noscript>
<script type="text/javascript">
(function(){
var nojs = document.getElementById('no-js');
if ( nojs ) nojs.parentNode.removeChild(nojs);
var ns = document.getElementsByTagName('noscript');
if ( ns && (ns = ns[0]) ) ns.parentNode.removeChild(ns);
})();
</script>