Ticket #4556: RelatedObjectLookups.js.2.diff

File RelatedObjectLookups.js.2.diff, 671 bytes (added by Glin <glin@…>, 13 years ago)
  • RelatedObjectLookups.js

     
    3131    var name = triggeringLink.id.replace(/^add_/, '');
    3232    name = name.replace(/\./g, '___');
    3333    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    }
    3839    var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
    3940    win.focus();
    4041    return false;
Back to Top