From bcd6ebe87ceb5a176f7e8c30ddda61ab5fc1be1e Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 28 Apr 2015 13:24:13 -0400 Subject: [PATCH] Search IDs now not zero indexed --- src/definitions/modules/search.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)