mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 08:36:04 +01:00
1218d77fd5
git-svn-id: http://svn.automattic.com/wordpress/trunk@4587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
15 lines
831 B
PHP
15 lines
831 B
PHP
<?php
|
|
require_once('../wp-config.php');
|
|
cache_javascript_headers();
|
|
?>
|
|
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;
|
|
jaxcat.update('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="<?php echo js_escape(__('Add')); ?>"/><span id="howto"><?php echo js_escape(__('Separate multiple categories with commas.')); ?></span></span>');
|
|
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
|
|
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
|
|
}
|