PHP Cross Reference of WordPress Subversion HEAD |
| [ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] |
[Summary view] [Print] [Text view]
1 jQuery(function($) { 2 var options = false 3 if ( document.forms['addcat'].category_parent ) 4 options = document.forms['addcat'].category_parent.options; 5 6 var addAfter = function( r, settings ) { 7 var name = $("<span>" + $('name', r).text() + "</span>").html(); 8 var id = $('cat', r).attr('id'); 9 options[options.length] = new Option(name, id); 10 } 11 12 var delAfter = function( r, settings ) { 13 var id = $('cat', r).attr('id'); 14 for ( var o = 0; o < options.length; o++ ) 15 if ( id == options[o].value ) 16 options[o] = null; 17 } 18 19 if ( options ) 20 $('#the-list').wpList( { addAfter: addAfter, delAfter: delAfter } ); 21 else 22 $('#the-list').wpList(); 23 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs | Cross-referenced by PHPXref 0.6 and RedAlt |