newCatAddIn fix. fixes #2184

git-svn-id: http://svn.automattic.com/wordpress/trunk@3383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-31 20:59:28 +00:00
parent 38f4fca0db
commit 41a3730222
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ var newcat;
function newCatAddIn() {
if ( !document.getElementById('jaxcat') ) return false;
var ajaxcat = document.createElement('p');
var ajaxcat = document.createElement('span');
ajaxcat.id = 'ajaxcat';
newcat = document.createElement('input');
@ -194,7 +194,7 @@ function newCatCompletion() {
ids = myPload( ajaxCat.response );
names = myPload( newcat.value );
for ( i = 0; i < ids.length; i++ ) {
id = ids[i].replace(/[\n\r\l]+/g, "");
id = ids[i].replace(/[\n\r]+/g, "");
if ( id == '-1' ) {
p.innerHTML = "<?php echo addslashes(__("You don't have permission to do that.")); ?>";
return;