Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #975 -- JavaScript shortcut in raw_id_admin for ManyToManyField…

…s no longer replaces existing values.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a8b3d67b7a1b54c12b5b0e07b3d47e0fbed9cf9e 1 parent f6b90c8
Adrian Holovaty authored December 09, 2005
2  django/contrib/admin/media/js/admin/RelatedObjectLookups.js
@@ -10,7 +10,7 @@ function showRelatedObjectLookupPopup(triggeringLink) {
10 10
 
11 11
 function dismissRelatedLookupPopup(win, chosenId) {
12 12
     var elem = document.getElementById(win.name);
13  
-    if (elem.className.indexOf('vCommaSeparatedIntegerField') != -1 && elem.value) {
  13
+    if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) {
14 14
         elem.value += ',' + chosenId;
15 15
     } else {
16 16
         document.getElementById(win.name).value = chosenId;

0 notes on commit a8b3d67

Please sign in to comment.
Something went wrong with that request. Please try again.