Ticket #10131: RelatedObjectLookups.js.diff

File RelatedObjectLookups.js.diff, 647 bytes (added by onemoreryan@…, 7 years ago)

addition of append to dismissAddAnotherPopup in case of vManyToManyRawIdAdminField

  • RelatedObjectLookups.js

     
    6464            elem.options[elem.options.length] = o;
    6565            o.selected = true;
    6666        } else if (elem.nodeName == 'INPUT') {
    67             elem.value = newId;
     67            if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) {
     68                elem.value += ',' + newId;
     69            } else {
     70                elem.value = newId;
     71            }
    6872        }
    6973    } else {
    7074        var toId = name + "_to";
Back to Top