File: cat.js

package info (click to toggle)
wordpress 2.5.1-11%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,012 kB
  • ctags: 14,047
  • sloc: sh: 86,522; php: 48,548; makefile: 38; xml: 36
file content (5 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
jQuery( function($) {
	var myConfirm = function() { return '' !== $('#newcat').val(); };
	$('#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>')
	$('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
} );