Browse Source

Merge pull request #3206 from fabienb4/patch-1

[Search] Fixed fields.url
pull/3209/merge
Jack Lukic 9 years ago
parent
commit
e9a85c901c
1 changed files with 5 additions and 4 deletions
  1. 9
      src/definitions/modules/search.js

9
src/definitions/modules/search.js

@ -1134,6 +1134,7 @@ $.fn.search.settings = {
price : 'price', // result price
results : 'results', // array of results (standard)
title : 'title', // result title
url : 'url', // result url
action : 'action', // "view more" object name
actionText : 'text', // "view more" text
actionURL : 'url' // "view more" url
@ -1211,8 +1212,8 @@ $.fn.search.settings = {
// each item inside category
$.each(category.results, function(index, result) {
if(response[fields.url]) {
html += '<a class="result" href="' + response[fields.url] + '">';
if(result[fields.url]) {
html += '<a class="result" href="' + result[fields.url] + '">';
}
else {
html += '<a class="result">';
@ -1262,8 +1263,8 @@ $.fn.search.settings = {
// each result
$.each(response[fields.results], function(index, result) {
if(response[fields.url]) {
html += '<a class="result" href="' + response[fields.url] + '">';
if(result[fields.url]) {
html += '<a class="result" href="' + result[fields.url] + '">';
}
else {
html += '<a class="result">';

Loading…
Cancel
Save