Ticket #4556: RelatedObjectLookups.js.diff

File RelatedObjectLookups.js.diff, 744 bytes (added by glin@…, 13 years ago)
  • admin/RelatedObjectLookups.js

     
    3030function showAddAnotherPopup(triggeringLink) {
    3131    var name = triggeringLink.id.replace(/^add_/, '');
    3232    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');
    3439    win.focus();
    3540    return false;
    3641}
Back to Top