Skip to content

Commit e356e68

Browse files
author
Dmitry Berezovsky
committed
Fixed issue #5
1 parent 98ca3b3 commit e356e68

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

locationpicker.jquery.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,14 @@
129129
google.maps.event.addListener(gmapContext.autocomplete, 'place_changed', function() {
130130
var place = gmapContext.autocomplete.getPlace();
131131
if (!place.geometry) {
132-
gmapContext.onlocationnotfound();
132+
gmapContext.settings.onlocationnotfound(place.name);
133133
return;
134134
}
135135
GmUtility.setPosition(gmapContext, place.geometry.location, function(context) {
136136
updateInputValues(inputBinding, context);
137137
context.settings.onchanged(GmUtility.locationFromLatLng(context.location), context.radius, false);
138138
});
139139
});
140-
// Prevent form from being submitted if user hit enter.
141-
inputBinding.locationNameInput.keypress(function(event){
142-
if (event.keyCode === 13){ return false; }
143-
});
144140
}
145141
if (inputBinding.latitudeInput) {
146142
inputBinding.latitudeInput.on("change", function() {

locationpicker.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"map",
1010
"radius"
1111
],
12-
"version": "0.1.7",
12+
"version": "0.1.8",
1313
"author": {
1414
"name": "Dmitry Berezovsky",
1515
"url": "http://logicify.com/"

0 commit comments

Comments
 (0)