mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 08:36:04 +01:00
4214428322
git-svn-id: http://svn.automattic.com/wordpress/trunk@5637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
11 lines
778 B
JavaScript
11 lines
778 B
JavaScript
addLoadEvent(function(){linkcatList=new listMan('linkcategorychecklist');linkcatList.ajaxRespEl='jaxcat';linkcatList.topAdder=1;linkcatList.alt=0;linkcatList.showLink=0;});
|
|
addLoadEvent(newLinkCatAddIn);
|
|
function newLinkCatAddIn() {
|
|
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="' + linkcatL10n.add + '"/><input type="hidden"/><span id="howto">' + linkcatL10n.how + '</span></span>');
|
|
$('newcat').onkeypress = function(e) { return killSubmit("linkcatList.ajaxAdder('link-category','jaxcat');", e); };
|
|
$('catadd').onclick = function() { linkcatList.ajaxAdder('link-category', 'jaxcat'); };
|
|
}
|