Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("!!!!!" + address + "!!!!!!!" + results[0].geometry.location.lat() + "," + results[0].geometry.location.lng() + "!!!!!");
- window.coords.push({
- address: address,
- lat: results[0].geometry.location.lat(),
- lng: results[0].geometry.location.lng()
- });
- window.coords = [];
- function hack() {
- var $selected = $('#apartman-field_dm').find('option:selected');
- $selected.prop('selected', false);
- var $next = $selected.next('option');
- if ($next.length) {
- $next.prop('selected', true);
- $('#apartman-field_dm').trigger('customchange');
- setTimeout(hack, 5000);
- } else {
- console.log(window.coords);
- }
- };
- hack();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement