Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. private GetHouseSeries(suggestion) {
  2.  
  3. const httpOptions = {
  4.  
  5. headers: new HttpHeaders({
  6. 'Accept': 'application/json',
  7. 'Content-Type': 'application/json',
  8. })
  9.  
  10. };
  11.  
  12. this.http.post(this.CONFIG.urlSkachayOkno+"/.ajax/getHouseByAddress.php?address=" + suggestion.value, httpOptions).subscribe(data => {
  13.  
  14. let successButton = document.getElementsByClassName("address-search-form__submit-button") as HTMLCollectionOf<HTMLElement>;
  15. if (successButton.length != 0) {
  16. successButton[0].classList.add('visible');
  17. successButton[0].setAttribute("data_href", (data as any).SERIES_URL);
  18. }
  19.  
  20. });
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement