Skip to content
Snippets Groups Projects
Commit d21f9994 authored by alvaro's avatar alvaro
Browse files

Fixed bug that broke search for from URLs of different depth in generated...

Fixed bug that broke search for from URLs of different depth in generated components. Idem with spinning wheel gif for waiting results
Changed Google maps zoom by default
parent 069ec7be
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ class Haanga_Extension_Filter_Googlemaps{ ...@@ -13,7 +13,7 @@ class Haanga_Extension_Filter_Googlemaps{
$latArr =""; $longArr=""; $nameArr = ""; $latArr =""; $longArr=""; $nameArr = "";
$w = "400"; $w = "400";
$h = "300"; $h = "300";
$zoom = "10"; $zoom = "4";
if($names[3] != null && $names[3] != ""){ if($names[3] != null && $names[3] != ""){
$w = $names[3]; $w = $names[3];
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
} }
.wait{ .wait{
background-image:url('img/wait.gif'); background-image:url('{{lodspk.home}}img/wait.gif');
background-repeat:no-repeat; background-repeat:no-repeat;
padding-right:20px; padding-right:20px;
background-position: right; background-position: right;
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
$('.typeahead').typeahead({ $('.typeahead').typeahead({
source: function (typeahead, query) { source: function (typeahead, query) {
$('.typeahead').addClass('wait');[] $('.typeahead').addClass('wait');[]
return $.get('search/'+encodeURIComponent(query), { }, function (data) { return $.get('{{lodspk.home}}search/'+encodeURIComponent(query), { }, function (data) {
$('.typeahead').removeClass('wait');[] $('.typeahead').removeClass('wait');[]
return typeahead.process(data); return typeahead.process(data);
}, 'json'); }, 'json');
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
} }
.wait{ .wait{
background-image:url('img/wait.gif'); background-image:url('{{lodspk.home}}img/wait.gif');
background-repeat:no-repeat; background-repeat:no-repeat;
padding-right:20px; padding-right:20px;
background-position: right; background-position: right;
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
$('.typeahead').typeahead({ $('.typeahead').typeahead({
source: function (typeahead, query) { source: function (typeahead, query) {
$('.typeahead').addClass('wait');[] $('.typeahead').addClass('wait');[]
return $.get('search/'+encodeURIComponent(query), { }, function (data) { return $.get('{{lodspk.home}}search/'+encodeURIComponent(query), { }, function (data) {
$('.typeahead').removeClass('wait');[] $('.typeahead').removeClass('wait');[]
return typeahead.process(data); return typeahead.process(data);
}, 'json'); }, 'json');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment