Removing some unused javascript and adding hook
git-svn-id: http://svn.automattic.com/wordpress/trunk@2761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9bb04b5a0
commit
06e8e848a4
|
@ -25,6 +25,7 @@ tinyMCE.init({
|
|||
entity_encoding : "raw",
|
||||
extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]",
|
||||
plugins : "emotions"
|
||||
do_action('mce_options');
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
@ -32,22 +33,6 @@ tinyMCE.init({
|
|||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
function customToggleLink() {
|
||||
// TODO: Only show link if there's a hidden row
|
||||
document.write('<small>(<a href="javascript:;" id="customtoggle" onclick="toggleHidden()"><?php _e('Show hidden'); ?></a>)</small>');
|
||||
// TODO: Rotate link to say "show" or "hide"
|
||||
// TODO: Use DOM
|
||||
}
|
||||
|
||||
function toggleHidden() {
|
||||
var allElements = document.getElementsByTagName('tr');
|
||||
for (i = 0; i < allElements.length; i++) {
|
||||
if ( allElements[i].className.indexOf('hidden') != -1 ) {
|
||||
allElements[i].className = allElements[i].className.replace('hidden', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php if ( isset($xfn) ) : ?>
|
||||
|
||||
function GetElementsWithClassName(elementName, className) {
|
||||
|
|
Loading…
Reference in New Issue