Skip to content

Commit fa6dada

Browse files
committed
Only a few special characters were working with the previous fix. Removed special encoding and all seem to be working now.
1 parent bf8213b commit fa6dada

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

geocode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<title>Geocode</title>

js/geocode.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Geocode function for the origin location
1+
//Geocode function for the origin location
22
geocoder = new google.maps.Geocoder();
33
function GoogleGeocode() {
44
this.geocode = function(address, callbackFunction) {
@@ -24,8 +24,7 @@ $(function() {
2424
e.preventDefault();
2525
//Get the user input and use it
2626
var userinput = $('form #address').val();
27-
//Convert to utf-8
28-
userinput = unescape(encodeURIComponent(userinput));
27+
2928
if (userinput == "")
3029
{
3130
alert("The input box was blank.");

js/jquery.storelocator.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* storeLocator v1.3.1 - jQuery store locator plugin
2+
* storeLocator v1.3.2 - jQuery store locator plugin
33
* (c) Copyright 2012, Bjorn Holine (http://www.bjornblog.com)
44
* Released under the MIT license
55
* Distance calculation function by Chris Pietschmann: http://pietschsoft.com/post/2008/02/01/Calculate-Distance-Between-Geocodes-in-C-and-JavaScript.aspx
@@ -167,8 +167,7 @@ $.fn.storeLocator = function(options) {
167167
e.preventDefault();
168168
//Get the user input and use it
169169
var userinput = $('#' + settings.formID + ' #' + settings.inputID).val();
170-
//Convert to utf-8 - special character issue fix
171-
userinput = unescape(encodeURIComponent(userinput));
170+
172171
if (userinput == "")
173172
{
174173
//Show alert and stop processing

js/jquery.storelocator.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)