From a8b3d67b7a1b54c12b5b0e07b3d47e0fbed9cf9e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 9 Dec 2005 03:00:57 +0000 Subject: [PATCH] Fixed #975 -- JavaScript shortcut in raw_id_admin for ManyToManyFields no longer replaces existing values. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1580 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/js/admin/RelatedObjectLookups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/media/js/admin/RelatedObjectLookups.js b/django/contrib/admin/media/js/admin/RelatedObjectLookups.js index 3788e048b2..e43d3a0985 100644 --- a/django/contrib/admin/media/js/admin/RelatedObjectLookups.js +++ b/django/contrib/admin/media/js/admin/RelatedObjectLookups.js @@ -10,7 +10,7 @@ function showRelatedObjectLookupPopup(triggeringLink) { function dismissRelatedLookupPopup(win, chosenId) { var elem = document.getElementById(win.name); - if (elem.className.indexOf('vCommaSeparatedIntegerField') != -1 && elem.value) { + if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { document.getElementById(win.name).value = chosenId;