Permalink
Browse files

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

…106.

git-svn-id: http://code.djangoproject.com/svn/django/branches/0.91-bugfixes@6474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9cd09e7 commit 613cfabdd07276318d56a27678ef03b04d99b16e @ubernostrum ubernostrum committed Oct 12, 2007
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/contrib/admin/media/js/admin/RelatedObjectLookups.js
@@ -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 showRelatedObjectLookupPopup(triggeringLink) {
}
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;

0 comments on commit 613cfab

Please sign in to comment.