CoreFiles by mySites.guru
cat-js.php14 lines, 831 bytes, from wordpress-2.1-beta1.zip
Raw History Compare with 2.0.9-beta
md5
e0f594b5b2790ed81fb024d5d6f8ce16
sha1
116daf8a6146766259a46ed86f6f60ee32b8fa22
sha256
1f2b76750ae2f0c3fc9646ea9715976c6cd4a9178775ea99d85b7099b08d9d2e
<?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'); };
}

The same content is in 5 releases, WordPress 2.1-beta1 to 2.1-RC1. See them all, or every version of this file.