Skip to content

Commit

Permalink
fix qg-location (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
devonpis authored Feb 21, 2022
1 parent f777620 commit 9859deb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/assets/_project/_blocks/layout/location/qg-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ $(function () {
qgLocation.fn.initManualSearch = function (event) {
var inputField = event['target'];
var keyCode = event['keyCode'];
var inputValue = inputField['value'];
var inputValue = inputField['value'].toLowerCase();
var numChars = inputValue.length;

$('.qg-location-setter-form input[type=text]').removeClass('error');
Expand Down Expand Up @@ -540,8 +540,8 @@ $(function () {
// Insert into the DOM
document.querySelector('body').appendChild(scriptElement);
scriptElement.onload = function () {
qgLocation.fn.init();
};
qgLocation.fn.init();
};
} else {
//console.log('Maps already loaded on page');
// Maps already loaded on page
Expand Down Expand Up @@ -777,11 +777,11 @@ $(function () {

// Handle special cases
switch (centreType) {
case 'hsc':
centreURL += 'id=' + centreID + '&title=' + centreName;
break;
default:
centreURL += centreName;
case 'hsc':
centreURL += 'id=' + centreID + '&title=' + centreName;
break;
default:
centreURL += centreName;
}

// Build HTML
Expand Down

0 comments on commit 9859deb

Please sign in to comment.