diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index db4d6ed5e..5ad5b547e 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -632,10 +632,12 @@ $.fn.search = function(parameters) { }, inject: { - result: function(result, resultIndex, categoryIndex) { + result: function(result, resultID, categoryID) { module.verbose('Injecting result into results'); var - $selectedResult = (categoryIndex !== undefined) + resultIndex = (resultID - 1), + categoryIndex = (categoryID - 1), + $selectedResult = (categoryID !== undefined) ? $results .children().eq(categoryIndex) .children().eq(resultIndex)