PageRenderTime 22ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Web/wp-admin/js/cat.dev.js

https://bitbucket.org/jimjenkins5/blog
JavaScript | 5 lines | 5 code | 0 blank | 0 comment | 0 complexity | ed5cc1456007f3712e9722ea27253bb2 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
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} );