Browse Source

Search IDs now not zero indexed

pull/2158/merge
jlukic 9 years ago
parent
commit
bcd6ebe87c
1 changed files with 4 additions and 2 deletions
  1. 6
      src/definitions/modules/search.js

6
src/definitions/modules/search.js

@ -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)

Loading…
Cancel
Save