Skip to content

Commit f479102

Browse files
committed
Updated formEventHandler method to prevent ASP.net form submission on keydown instead of keyup
1 parent 1e1b4c1 commit f479102

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.0.8 - 2015-05-11
1+
/*! jQuery Google Maps Store Locator - v2.0.8 - 2015-05-23
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -372,7 +372,7 @@
372372
$(document).on('click.'+pluginName, '.' + this.settings.formContainer + ' button', function (e) {
373373
_this.processForm(e);
374374
});
375-
$(document).on('keyup.'+pluginName, function (e) {
375+
$(document).on('keydown.'+pluginName, function (e) {
376376
if (e.keyCode === 13 && $('#' + _this.settings.addressID).is(':focus')) {
377377
_this.processForm(e);
378378
}

0 commit comments

Comments
 (0)