Ticket #4556: RelatedObjectLookups.js.diff
File RelatedObjectLookups.js.diff, 744 bytes (added by , 17 years ago) |
---|
-
admin/RelatedObjectLookups.js
30 30 function showAddAnotherPopup(triggeringLink) { 31 31 var name = triggeringLink.id.replace(/^add_/, ''); 32 32 name = name.replace(/\./g, '___'); 33 var win = window.open(triggeringLink.href + '?_popup=1', name, 'height=500,width=800,resizable=yes,scrollbars=yes'); 33 href = triggeringLink.href 34 if (href.indexOf('?') == -1) 35 href += '?_popup=1'; 36 else 37 href += '&_popup=1'; 38 var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); 34 39 win.focus(); 35 40 return false; 36 41 }