Skip to content

Commit 0842f67

Browse files
committed
Merge pull request #23 from DavidPhilip/master
Update: Fire change() event on bound input changes
2 parents bd5600d + 63605e1 commit 0842f67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

locationpicker.jquery.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@
146146
if (!inputBinding) return;
147147
var currentLocation = GmUtility.locationFromLatLng(gmapContext.location);
148148
if (inputBinding.latitudeInput) {
149-
inputBinding.latitudeInput.val(currentLocation.latitude);
149+
inputBinding.latitudeInput.val(currentLocation.latitude).change();
150150
}
151151
if (inputBinding.longitudeInput) {
152-
inputBinding.longitudeInput.val(currentLocation.longitude);
152+
inputBinding.longitudeInput.val(currentLocation.longitude).change();
153153
}
154154
if (inputBinding.radiusInput) {
155-
inputBinding.radiusInput.val(gmapContext.radius);
155+
inputBinding.radiusInput.val(gmapContext.radius).change();
156156
}
157157
if (inputBinding.locationNameInput) {
158-
inputBinding.locationNameInput.val(gmapContext.locationName);
158+
inputBinding.locationNameInput.val(gmapContext.locationName).change();
159159
}
160160
}
161161

0 commit comments

Comments
 (0)