newCatAddIn fix. fixes #2184
git-svn-id: https://develop.svn.wordpress.org/trunk@3383 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
29e7d65c71
commit
9f7f499ed8
|
@ -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