lib/sdoc/generator/template/direct/resources/js/searchdoc.js in voloko-sdoc-0.2.10 vs lib/sdoc/generator/template/direct/resources/js/searchdoc.js in voloko-sdoc-0.2.10.1

- old
+ new

@@ -405,11 +405,10 @@ html += '<h1>' + hlt(result.title); if (result.params) html += '<i>' + result.params + '</i>'; html += '</h1>'; html += '<p>'; if (typeof badge != 'undefined') { - badge = badge % 6; - html += '<span class="badge badge_' + (badge + 1) + '">' + escapeHTML(this.data.badges[badge] || 'unknown') + '</span>'; + html += '<span class="badge badge_' + (badge % 6 + 1) + '">' + escapeHTML(this.data.badges[badge] || 'unknown') + '</span>'; } html += hlt(result.namespace) + '</p>'; if (result.snippet) html += '<p class="snippet">' + escapeHTML(result.snippet) + '</p>'; li.innerHTML = html; jQuery.data(li, 'path', result.path);