Make WordPress Core

Changeset 3323


Ignore:
Timestamp:
12/18/2005 03:50:53 PM (19 years ago)
Author:
ryan
Message:

Fix JS error in IE. fixes #2089

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r3318 r3323  
    164164    var p = document.getElementById('ajaxcatresponse');
    165165    if (!p) {
    166         p = document.createElement('p');
     166        p = document.createElement('span');
    167167        document.getElementById('jaxcat').appendChild(p);
    168168        p.id = 'ajaxcatresponse';
     
    188188function newCatCompletion() {
    189189    var p = getResponseElement();
    190 //  alert(ajaxCat.response);
    191190    var id    = 0;
    192191    var ids   = new Array();
     
    196195    names = myPload( newcat.value );
    197196    for ( i = 0; i < ids.length; i++ ) {
    198         id = ids[i];
    199 //      alert(id);
     197        id = ids[i].replace(/[\n\r\l]+/g, "");
    200198        if ( id == '-1' ) {
    201199            p.innerHTML = "<?php echo addslashes(__("You don't have permission to do that.")); ?>";
Note: See TracChangeset for help on using the changeset viewer.