Author: ubernostrum
Date: 2007-10-12 13:47:11 -0500 (Fri, 12 Oct 2007)
New Revision: 6474

Modified:
   
django/branches/0.91-bugfixes/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
Log:
0.91-bugfixes: Backport [3066] and some related changes. Refs #1635, #106.


Modified: 
django/branches/0.91-bugfixes/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
===================================================================
--- 
django/branches/0.91-bugfixes/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
   2007-10-10 22:56:47 UTC (rev 6473)
+++ 
django/branches/0.91-bugfixes/django/contrib/admin/media/js/admin/RelatedObjectLookups.js
   2007-10-12 18:47:11 UTC (rev 6474)
@@ -3,6 +3,8 @@
 
 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';
@@ -15,6 +17,7 @@
 }
 
 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;


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to