3509883135
git-svn-id: https://develop.svn.wordpress.org/trunk@4970 602fd350-edb4-49c9-b593-d223f7449a82
11 lines
698 B
JavaScript
11 lines
698 B
JavaScript
addLoadEvent(function(){catList=new listMan('categorychecklist');catList.ajaxRespEl='jaxcat';catList.topAdder=1;catList.alt=0;catList.showLink=0;});
|
|
addLoadEvent(newCatAddIn);
|
|
function newCatAddIn() {
|
|
var jaxcat = $('jaxcat');
|
|
if ( !jaxcat )
|
|
return false;
|
|
Element.update(jaxcat,'<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="' + catL10n.add + '"/><span id="howto">' + catL10n.how + '</span></span>');
|
|
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
|
|
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
|
|
}
|