source: trunk/www.guidonia.net/wp/wp-admin/js/cat.dev.js@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 573 bytes
Line 
1jQuery(document).ready( function($) {
2 var myConfirm = function() { return '' !== $('#newcat').val(); };
3 $('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" class="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span><span id="cat-ajax-response"></span>');
4 $('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
5} );
Note: See TracBrowser for help on using the repository browser.