  }
  
  function showRelatedObjectLookupPopup(triggeringLink) {
      var name = triggeringLink.id.replace(/^lookup_/, '');
      // IE doesn't like periods in the window name, so convert temporarily.
      name = name.replace(/\./g, '___');
      var href;
      if (triggeringLink.href.search(/\?/) >= 0) {
          href = triggeringLink.href + '&pop=1';
      } else {
          href = triggeringLink.href + '?pop=1';
 
</s> remove     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 showRelatedObjectLookupPopup(triggeringLink) {
      var name = triggeringLink.id.replace(/^lookup_/, '');
    name = id_to_windowname(name);
    name = id_to_windowname(name);
      var href;
      if (triggeringLink.href.search(/\?/) >= 0) {
          href = triggeringLink.href + '&pop=1';
      } else {
          href = triggeringLink.href + '?pop=1';
keep keep keep keep replace 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