Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private GetHouseSeries(suggestion) {
- const httpOptions = {
- headers: new HttpHeaders({
- 'Accept': 'application/json',
- 'Content-Type': 'application/json',
- })
- };
- this.http.post(this.CONFIG.urlSkachayOkno+"/.ajax/getHouseByAddress.php?address=" + suggestion.value, httpOptions).subscribe(data => {
- let successButton = document.getElementsByClassName("address-search-form__submit-button") as HTMLCollectionOf<HTMLElement>;
- if (successButton.length != 0) {
- successButton[0].classList.add('visible');
- successButton[0].setAttribute("data_href", (data as any).SERIES_URL);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement