  }
  
  function showAddAnotherPopup(triggeringLink) {
      var name = triggeringLink.id.replace(/^add_/, '');
      name = name.replace(/\./g, '___');
      href = triggeringLink.href
      if (href.indexOf('?') == -1) {
          href += '?_popup=1';
      } else {
          href  += '&_popup=1';
 
</s> remove     // IE doesn't like periods in the window name, so convert temporarily.
    name = name.replace(/\./g, '___');
 </s> add     name = id_to_windowname(name); </s> remove     var name = win.name.replace(/___/g, '.');
 </s> add     var name = windowname_to_id(win.name); </s> remove     var name = win.name.replace(/___/g, '.');
 </s> add     var name = windowname_to_id(win.name);
    name = id_to_windowname(name);
  }
  
  function showAddAnotherPopup(triggeringLink) {
      var name = triggeringLink.id.replace(/^add_/, '');
    name = id_to_windowname(name);
      href = triggeringLink.href
      if (href.indexOf('?') == -1) {
          href += '?_popup=1';
      } else {
          href  += '&_popup=1';
keep keep keep keep replace keep keep keep keep keep
 Fixed #106 -- Refrain from generating popup window names that IE refuses to pop up.  Thanks for the reports and initial patches nbstrite and jsmullyan.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9403 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/media/js/admin/RelatedObjectLookups.js