|
@@ -13,6 +13,8 @@
|
|
|
callbackClientId(objSelectClient.val());
|
|
|
} else {
|
|
|
drawMap(-32.030232, -61.220883); // galvez
|
|
|
+ $("div[id*='_nap']").find(".select2-chosen").html("");
|
|
|
+ $("select[id*='_nap']").val(0);
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -56,13 +58,10 @@
|
|
|
url: "http://maps.googleapis.com/maps/api/geocode/json?address='" + address + "'",
|
|
|
type: "POST"
|
|
|
}).done(function (res) {
|
|
|
- if (res != undefined) {
|
|
|
- if (res.status == google.maps.GeocoderStatus.OK) {
|
|
|
+ if (res != undefined && res.status == google.maps.GeocoderStatus.OK) {
|
|
|
drawMap(res.results[0].geometry.location.lat, res.results[0].geometry.location.lng);
|
|
|
- } else {
|
|
|
- alert(res.status);
|
|
|
- }
|
|
|
} else {
|
|
|
+ console.log(res.status);
|
|
|
alert("{{ 'error.address_not_found'|trans({}, 'FTTHBundle') }}");
|
|
|
}
|
|
|
}).error(function (res) {
|