Make WordPress Core


Ignore:
Timestamp:
08/07/2005 07:36:42 PM (19 years ago)
Author:
matt
Message:

Removing some unused javascript and adding hook

File:
1 edited

Legend:

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

    r2756 r2761  
    2626    extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]",
    2727    plugins : "emotions"
     28    do_action('mce_options');
    2829});
    2930</script>
     
    3233<script type="text/javascript">
    3334//<![CDATA[
    34 
    35 function customToggleLink() {
    36     // TODO: Only show link if there's a hidden row
    37     document.write('<small>(<a href="javascript:;" id="customtoggle" onclick="toggleHidden()"><?php _e('Show hidden'); ?></a>)</small>');
    38     // TODO: Rotate link to say "show" or "hide"
    39     // TODO: Use DOM
    40 }
    41 
    42 function toggleHidden() {
    43     var allElements = document.getElementsByTagName('tr');
    44     for (i = 0; i < allElements.length; i++) {
    45         if ( allElements[i].className.indexOf('hidden') != -1 ) {
    46              allElements[i].className = allElements[i].className.replace('hidden', '');
    47         }
    48     }
    49 }
    5035
    5136<?php if ( isset($xfn) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.