|
@ -632,10 +632,12 @@ $.fn.search = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
inject: { |
|
|
inject: { |
|
|
result: function(result, resultIndex, categoryIndex) { |
|
|
|
|
|
|
|
|
result: function(result, resultID, categoryID) { |
|
|
module.verbose('Injecting result into results'); |
|
|
module.verbose('Injecting result into results'); |
|
|
var |
|
|
var |
|
|
$selectedResult = (categoryIndex !== undefined) |
|
|
|
|
|
|
|
|
resultIndex = (resultID - 1), |
|
|
|
|
|
categoryIndex = (categoryID - 1), |
|
|
|
|
|
$selectedResult = (categoryID !== undefined) |
|
|
? $results |
|
|
? $results |
|
|
.children().eq(categoryIndex) |
|
|
.children().eq(categoryIndex) |
|
|
.children().eq(resultIndex) |
|
|
.children().eq(resultIndex) |
|
|