app/src/inject/autofill.js
// Function that allows for one-click username searches
Function that allows for one-click username searches
Function that allows for one - click username searches
function searchUsername(e) {
    e.preventDefault();
    const urlstring = '/_ui/common/data/LookupPage?lkfm=editPage&lknm=cas3&lktp=' + document.getElementById('cas3_lktp').value + '&lksrch=' + contactName.value;
    const searchWindow = window.open(urlstring);
    const theDoc = searchWindow.document;
    const theScript = document.createElement('script');
    theScript.innerHTML = 'window.onload = ' + search.toString();
    theDoc.body.appendChild(theScript);
    searchBtn.removeEventListener('click', searchUsername);
  }
function searchUsername ( e ) { e . preventDefault ( ) ; const urlstring = '/_ui/common/data/LookupPage?lkfm=editPage&lknm=cas3&lktp=' + document . getElementById ( 'cas3_lktp' ) . value + '&lksrch=' + contactName . value ; const searchWindow = window . open ( urlstring ) ; const theDoc = searchWindow . document ; const theScript = document . createElement ( 'script' ) ; theScript . innerHTML = 'window.onload = ' + search . toString ( ) ; theDoc . body . appendChild ( theScript ) ; searchBtn . removeEventListener ( 'click' , searchUsername ) ; }
Function that allows for one-click username searches
Function that allows for one - click username searches