      return false;
  }
  
  function dismissRelatedLookupPopup(win, chosenId) {
      var name = win.name.replace(/___/g, '.');
      var elem = document.getElementById(name);
      if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) {
          elem.value += ',' + chosenId;
      } else {
          document.getElementById(name).value = chosenId;
 
</s> remove     name = name.replace(/\./g, '___');
 </s> add     name = id_to_windowname(name); </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);
    var name = windowname_to_id(win.name);
      return false;
  }
  
  function dismissRelatedLookupPopup(win, chosenId) {
    var name = windowname_to_id(win.name);
      var elem = document.getElementById(name);
      if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) {
          elem.value += ',' + chosenId;
      } else {
          document.getElementById(name).value = chosenId;
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