Ticket #11684: 11684-dismissAddAnotherPopup-xhtml.diff
File 11684-dismissAddAnotherPopup-xhtml.diff, 902 bytes (added by , 15 years ago) |
---|
-
contrib/admin/media/js/admin/RelatedObjectLookups.js
74 74 var name = windowname_to_id(win.name); 75 75 var elem = document.getElementById(name); 76 76 if (elem) { 77 if (elem.nodeName == 'SELECT') {77 if (elem.nodeName.toUpperCase() == 'SELECT') { 78 78 var o = new Option(newRepr, newId); 79 79 elem.options[elem.options.length] = o; 80 80 o.selected = true; 81 } else if (elem.nodeName == 'INPUT') {81 } else if (elem.nodeName.toUpperCase() == 'INPUT') { 82 82 if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) { 83 83 elem.value += ',' + newId; 84 84 } else {