Changeset 3323
- Timestamp:
- 12/18/2005 03:50:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r3318 r3323 164 164 var p = document.getElementById('ajaxcatresponse'); 165 165 if (!p) { 166 p = document.createElement(' p');166 p = document.createElement('span'); 167 167 document.getElementById('jaxcat').appendChild(p); 168 168 p.id = 'ajaxcatresponse'; … … 188 188 function newCatCompletion() { 189 189 var p = getResponseElement(); 190 // alert(ajaxCat.response);191 190 var id = 0; 192 191 var ids = new Array(); … … 196 195 names = myPload( newcat.value ); 197 196 for ( i = 0; i < ids.length; i++ ) { 198 id = ids[i]; 199 // alert(id); 197 id = ids[i].replace(/[\n\r\l]+/g, ""); 200 198 if ( id == '-1' ) { 201 199 p.innerHTML = "<?php echo addslashes(__("You don't have permission to do that.")); ?>";
Note: See TracChangeset
for help on using the changeset viewer.