Skip to content
Permalink
Browse files

Fix autocomplete for Geolocation extension

  • Loading branch information
rilwis committed May 22, 2019
1 parent 5785c70 commit 0bb4facf7a474b8066dada1e843d98d608d1e94f
Showing with 7 additions and 5 deletions.
  1. +3 −2 js/map.js
  2. +4 −3 js/osm.js
@@ -133,9 +133,10 @@
return;
}

// If Meta Box Geo Location installed. Do not run auto complete.
// If Meta Box Geo Location installed. Do not run autocomplete.
if ( $( '.rwmb-geo-binding' ).length ) {
$address.on( 'selected_address', that.geocodeAddress );
var geocodeAddress = that.geocodeAddress.bind( that );
$address.on( 'selected_address', geocodeAddress );
return false;
}

@@ -128,10 +128,11 @@
return;
}

// If Meta Box Geo Location installed. Do not run auto complete.
// If Meta Box Geo Location installed. Do not run autocomplete.
if ( $( '.rwmb-geo-binding' ).length ) {
$address.on( 'selected_address', that.geocodeAddress );
return;
var geocodeAddress = that.geocodeAddress.bind( that );
$address.on( 'selected_address', geocodeAddress );
return false;
}

$address.autocomplete( {

0 comments on commit 0bb4fac

Please sign in to comment.
You can’t perform that action at this time.