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