2006-01-10 22:49:11 +00:00
|
|
|
<?php
|
2006-03-18 00:38:37 +00:00
|
|
|
require_once('../wp-config.php');
|
2006-08-22 17:31:53 +00:00
|
|
|
cache_javascript_headers();
|
2006-01-10 22:49:11 +00:00
|
|
|
?>
|
2006-04-04 00:16:27 +00:00
|
|
|
addLoadEvent(function(){catList=new listMan('categorychecklist');catList.ajaxRespEl='jaxcat';catList.topAdder=1;catList.alt=0;catList.showLink=0;});
|
2006-03-29 01:51:55 +00:00
|
|
|
addLoadEvent(newCatAddIn);
|
2006-01-10 05:16:17 +00:00
|
|
|
function newCatAddIn() {
|
2006-09-13 21:39:53 +00:00
|
|
|
var jaxcat = $('jaxcat');
|
|
|
|
if ( !jaxcat )
|
|
|
|
return false;
|
2007-01-19 00:49:01 +00:00
|
|
|
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="<?php echo js_escape(__('Add')); ?>"/><span id="howto"><?php echo js_escape(__('Separate multiple categories with commas.')); ?></span></span>');
|
2006-09-13 21:39:53 +00:00
|
|
|
$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
|
|
|
|
$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
|
2006-01-10 05:16:17 +00:00
|
|
|
}
|