From 9f7f499ed827cbf6974449926540e1aadca24c9b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 31 Dec 2005 20:59:28 +0000 Subject: [PATCH] newCatAddIn fix. fixes #2184 git-svn-id: https://develop.svn.wordpress.org/trunk@3383 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index d9f56617b9..5e87a041ca 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -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 = ""; return;