CoreFiles by mySites.guru
cat-js.php14 lines, 839 bytes, from wordpress-2.1.2.zip
Raw History Compare with 2.1.1
md5
76284c881b966c94b2d605e815ab17ca
sha1
eb05d80c5e183b6d401b95c91c495d56aa24dc9a
sha256
6062af28b34f83f008e7696fe8c0cc40010a7a39ad567b8effa7661206ecb15b
<?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;
	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>');
	$('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); };
	$('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); };
}

The same content is in 10 releases, WordPress 2.1-RC2 to 2.1.3. See them all, or every version of this file.