Some quick fixes

This commit is contained in:
assar
2017-06-06 18:55:39 +00:00
parent 41a2cfceed
commit 0875fd5201
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -189,6 +189,7 @@ function show_part_info(partID) {
}
$(document).ready(function() {
$.ajaxSetup({ cache: false });
$('.search-bar').on('keyup', function() {
var query = $('.search-bar').val();
var filter = 0;
@@ -227,7 +228,7 @@ $(document).ready(function() {
newResults += '</div>';
newResults += '<div class="results-notes">';
if (data[i].notes != null)
if (data[i].notes != null && notes.length > 0)
newResults += '<div class="tooltip"><i class="fa fa-sicky-note"></i><span class="tooltiptext">' + data[i].notes + '</span></div>';
//newResults += data[i].notes;
newResults += '</div>';