We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d09c5e commit f5d9235Copy full SHA for f5d9235
client/javascript/addressfinder.js
@@ -1,7 +1,11 @@
1
;
2
(function($) {
3
$(document).ready(function() {
4
- $('.address_finder').each(function(i, elem) {
+ /**
5
+ *
6
+ * @param {DOMElement} elem
7
+ */
8
+ var setupAddressFinderField = function(elem) {
9
var widget,
10
key = $(elem).data('api-key'),
11
address = $(elem).find('.address_finder_address'),
@@ -64,6 +68,12 @@
64
68
input.on('focus', function(e) {
65
69
manual.slideUp()
66
70
})
71
+ }
72
+
73
+ $('.address_finder').each(function(i, elem) {
74
+ setupAddressFinderField(elem);
67
75
76
77
+ window.setupAddressFinderField = setupAddressFinderField
78
79
})(jQuery)
0 commit comments