WordPress.org

Plugin Directory

Changeset 354969


Ignore:
Timestamp:
03/03/11 22:19:02 (3 years ago)
Author:
JustinSainton
Message:

IE8 Fix in admin.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/js/admin.js

    r353966 r354969  
    975975    new_element_contents += "<td><a class='image_link' href='#' onclick='return remove_new_form_field(\""+new_element_id+"\");'><img src='" + WPSC_CORE_IMAGES_URL + "/trash.gif' alt='"+TXT_WPSC_DELETE+"' title='"+TXT_WPSC_DELETE+"' /></a></td>\n\r"; 
    976976    // new_element_contents += "</tr>"; 
    977  
    978     new_element = document.createElement('tr'); 
    979     new_element.id = new_element_id; 
    980     document.getElementById("wpsc_checkout_list_body").appendChild(new_element); 
    981     document.getElementById(new_element_id).innerHTML = new_element_contents; 
    982     jQuery('#'+new_element_id).addClass('checkout_form_field'); 
     977         
     978        var new_element = jQuery('<tr id="'+new_element_id+'" />'); 
     979    jQuery(new_element).html(new_element_contents); 
     980    jQuery("tbody#wpsc_checkout_list_body").append(new_element); 
     981    jQuery(new_element).addClass('checkout_form_field'); 
    983982    return false; 
    984983} 
Note: See TracChangeset for help on using the changeset viewer.