Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lugin-woocommerce into parcelshop-locator
  • Loading branch information
timoj committed Jul 30, 2018
2 parents f9ee77d + 63c7140 commit 067a644
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 171 deletions.
2 changes: 1 addition & 1 deletion assets/js/parcelshop.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function ajaxRequest(address) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
var val = JSON.parse(xhttp.responseText.substring(0, xhttp.responseText.length - 1));
var val = JSON.parse(xhttp.responseText);
displayMap(val.location);
setAddress(val.address);
addParcelshopList(sortParcelshops(val.parcelshops));
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions includes/parcelshop.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
//error_reporting(E_ALL);
//ini_set('display_errors', 1);

function parcelShopLocator()
{
Expand Down Expand Up @@ -35,4 +35,5 @@ function parcelShopLocator()
$parcelshops = "ParcelshopsConfig not complete";
}
echo json_encode($parcelshops);
exit;
}
Loading

0 comments on commit 067a644

Please sign in to comment.