newCatAddIn fix. fixes #2184
git-svn-id: http://svn.automattic.com/wordpress/trunk@3383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
38f4fca0db
commit
41a3730222
|
@ -130,7 +130,7 @@ var newcat;
|
||||||
|
|
||||||
function newCatAddIn() {
|
function newCatAddIn() {
|
||||||
if ( !document.getElementById('jaxcat') ) return false;
|
if ( !document.getElementById('jaxcat') ) return false;
|
||||||
var ajaxcat = document.createElement('p');
|
var ajaxcat = document.createElement('span');
|
||||||
ajaxcat.id = 'ajaxcat';
|
ajaxcat.id = 'ajaxcat';
|
||||||
|
|
||||||
newcat = document.createElement('input');
|
newcat = document.createElement('input');
|
||||||
|
@ -194,7 +194,7 @@ function newCatCompletion() {
|
||||||
ids = myPload( ajaxCat.response );
|
ids = myPload( ajaxCat.response );
|
||||||
names = myPload( newcat.value );
|
names = myPload( newcat.value );
|
||||||
for ( i = 0; i < ids.length; i++ ) {
|
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' ) {
|
if ( id == '-1' ) {
|
||||||
p.innerHTML = "<?php echo addslashes(__("You don't have permission to do that.")); ?>";
|
p.innerHTML = "<?php echo addslashes(__("You don't have permission to do that.")); ?>";
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue