From 6fce6825ee959e45ff89e47639110140c49887d2 Mon Sep 17 00:00:00 2001 From: Fabien Blanchard Date: Sun, 18 Oct 2015 17:39:25 -0600 Subject: [PATCH] Fixed fields.url --- src/definitions/modules/search.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index a27003b2e..adadb5011 100644 --- a/src/definitions/modules/search.js +++ b/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 += ''; + if(result[fields.url]) { + html += ''; } else { html += ''; @@ -1262,8 +1263,8 @@ $.fn.search.settings = { // each result $.each(response[fields.results], function(index, result) { - if(response[fields.url]) { - html += ''; + if(result[fields.url]) { + html += ''; } else { html += '';