mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #9341: add another on ManyToManyFields with raw_id_admins now works correctly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -79,7 +79,11 @@ function dismissAddAnotherPopup(win, newId, newRepr) {
|
||||
elem.options[elem.options.length] = o;
|
||||
o.selected = true;
|
||||
} else if (elem.nodeName == 'INPUT') {
|
||||
elem.value = newId;
|
||||
if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) {
|
||||
elem.value += ',' + newId;
|
||||
} else {
|
||||
elem.value = newId;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var toId = name + "_to";
|
||||
|
||||
Reference in New Issue
Block a user