2007-10-09 18:49:42 -04:00
|
|
|
jQuery( function($) {
|
2007-11-01 02:23:16 -04:00
|
|
|
var myConfirm = function() { return '' !== $('#newcat').val(); };
|
2007-10-09 18:49:42 -04:00
|
|
|
$('#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>')
|
2007-11-01 02:23:16 -04:00
|
|
|
$('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
|
2007-10-09 18:49:42 -04:00
|
|
|
} );
|