Ticket #9543: generic_inline_raw_id_IE_fix.patch
File generic_inline_raw_id_IE_fix.patch, 1006 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/media/js/admin/RelatedObjectLookups.js
14 14 function showRelatedObjectLookupPopup(triggeringLink) { 15 15 var name = triggeringLink.id.replace(/^lookup_/, ''); 16 16 // IE doesn't like periods in the window name, so convert temporarily. 17 name = name.replace(/ \./g, '___');17 name = name.replace(/[\.-]/g, '___'); 18 18 var href; 19 19 if (triggeringLink.href.search(/\?/) >= 0) { 20 20 href = triggeringLink.href + '&pop=1'; … … 39 39 40 40 function showAddAnotherPopup(triggeringLink) { 41 41 var name = triggeringLink.id.replace(/^add_/, ''); 42 name = name.replace(/ \./g, '___');42 name = name.replace(/[\.-]/g, '___'); 43 43 href = triggeringLink.href 44 44 if (href.indexOf('?') == -1) { 45 45 href += '?_popup=1';