Ticket #11684: 11684-dismissAddAnotherPopup-xhtml.diff

File 11684-dismissAddAnotherPopup-xhtml.diff, 902 bytes (added by rlaager@…, 15 years ago)
  • contrib/admin/media/js/admin/RelatedObjectLookups.js

     
    7474    var name = windowname_to_id(win.name);
    7575    var elem = document.getElementById(name);
    7676    if (elem) {
    77         if (elem.nodeName == 'SELECT') {
     77        if (elem.nodeName.toUpperCase() == 'SELECT') {
    7878            var o = new Option(newRepr, newId);
    7979            elem.options[elem.options.length] = o;
    8080            o.selected = true;
    81         } else if (elem.nodeName == 'INPUT') {
     81        } else if (elem.nodeName.toUpperCase() == 'INPUT') {
    8282            if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) {
    8383                elem.value += ',' + newId;
    8484            } else {
Back to Top