Skip to content
Snippets Groups Projects
Commit ddce40e6 authored by Chandreshgiri Gauswami's avatar Chandreshgiri Gauswami Committed by Vojislav Jovanovic
Browse files

Issue #3349849 by vaish, Chandreshgiri Gauswami, Ashutosh Ahirwal, geoffreyr,...

Issue #3349849 by vaish, Chandreshgiri Gauswami, Ashutosh Ahirwal, geoffreyr, justskew, Vitor Faria, yivanov: Drupal 10 compatibility
parent 7077c9b9
Branches
Tags
1 merge request!8Fixed D10 compatibility issues
name: Address Autocomplete
type: module
description: 'Provides an autocomplete feature for address fields'
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.2 || ^10
package: Field types
configure: address_autocomplete.settings
dependencies:
......
......@@ -4,5 +4,5 @@ address_autocomplete:
js/autocomplete_override.js: {}
dependencies:
- core/jquery
- core/jquery.once
- core/once
- core/drupal
{
"name": "drupal/address_autocomplete",
"type": "drupal-module",
"description": "This module enhances the Address module with autocomplete functionality.",
"homepage": "http://drupal.org/project/address_autocomplete",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Christian Ziegler (criz)",
"homepage": "https://www.drupal.org/u/criz",
"role": "Maintainer"
},
{
"name": "dejan0",
"homepage": "https://www.drupal.org/u/dejan0",
"role": "Maintainer"
},
{
"name": "Nikolay Grachev (granik)",
"homepage": "https://www.drupal.org/u/granik",
"role": "Maintainer"
},
{
"name": "Vojislav Jovanović (vaish)",
"homepage": "https://www.drupal.org/u/vaish",
"role": "Maintainer"
}
],
"support": {
"issues": "https://www.drupal.org/project/issues/address_autocomplete",
"source": "https://git.drupalcode.org/project/address_autocomplete"
},
"require": {
"drupal/core": "^9.2|| ^10"
}
}
(function ($, Drupal) {
(function ($, Drupal, once) {
Drupal.behaviors.address_autocomplete = {
attach: function (context, settings) {
$('input.address-line1', context).once('initiate-autocomplete').each(function () {
$(once('initiate-autocomplete', 'input.address-line1', context)).each(function () {
var form_wrapper = $(this).closest('.js-form-wrapper');
var ui_autocomplete = $(this).data('ui-autocomplete');
......@@ -17,4 +17,4 @@
});
}
};
}(jQuery, Drupal));
}(jQuery, Drupal, once));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment