Commits

Anonymous committed 0459421

0.91-bugfixes: Backport [3066] and some related changes. Refs #1635, #106.

  • Participants
  • Parent commits 4c350a8
  • Branches 0.91-bugfixes

Comments (0)

Files changed (1)

File django/contrib/admin/media/js/admin/RelatedObjectLookups.js

 
 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';
 }
 
 function dismissRelatedLookupPopup(win, chosenId) {
+    var name = win.name.replace(/___/g, '.');
     var elem = document.getElementById(win.name);
     if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) {
         elem.value += ',' + chosenId;