Ticket #9543: generic_inline_raw_id_IE_fix.patch

File generic_inline_raw_id_IE_fix.patch, 1006 bytes (added by Jacob Smullyan, 16 years ago)
  • django/contrib/admin/media/js/admin/RelatedObjectLookups.js

     
    1414function showRelatedObjectLookupPopup(triggeringLink) {
    1515    var name = triggeringLink.id.replace(/^lookup_/, '');
    1616    // IE doesn't like periods in the window name, so convert temporarily.
    17     name = name.replace(/\./g, '___');
     17    name = name.replace(/[\.-]/g, '___');
    1818    var href;
    1919    if (triggeringLink.href.search(/\?/) >= 0) {
    2020        href = triggeringLink.href + '&pop=1';
     
    3939
    4040function showAddAnotherPopup(triggeringLink) {
    4141    var name = triggeringLink.id.replace(/^add_/, '');
    42     name = name.replace(/\./g, '___');
     42    name = name.replace(/[\.-]/g, '___');
    4343    href = triggeringLink.href
    4444    if (href.indexOf('?') == -1) {
    4545        href += '?_popup=1';
Back to Top