68 |
} |
} |
69 |
|
|
70 |
|
|
71 |
BFilter.prototype.show_status = function (status,no_hits) { |
BFilter.prototype.show_status = function (query,no_hits) { |
72 |
var html = ""; |
var html = ""; |
73 |
if (! no_hits) { |
if (! no_hits) { |
74 |
if (this.hits > 0) { |
if (this.hits > 0) { |
81 |
status = ""; |
status = ""; |
82 |
} |
} |
83 |
} |
} |
84 |
|
if (! query) { |
85 |
|
html = "Enter "+this.min_len+" letter"+(this.min_len == 1 ? '' : 's')+" to filter entries"; |
86 |
|
query = ""; |
87 |
|
} else { |
88 |
|
query = " for <em>"+query+"</em>"; |
89 |
|
} |
90 |
|
|
91 |
var el = this.element_id("status"); |
var el = this.element_id("status"); |
92 |
el.innerHTML = html+status+"\n"; |
el.innerHTML = html+query+"\n"; |
93 |
|
|
94 |
return true; |
return true; |
95 |
} |
} |
213 |
|
|
214 |
// no part found |
// no part found |
215 |
if (! this.arr[part]) { |
if (! this.arr[part]) { |
216 |
this.show_status(" for <em>"+user_filter+"</em><br>"); |
this.show_status(user_filter); |
217 |
this.debug("no part "+part); |
this.debug("no part "+part); |
218 |
return; |
return; |
219 |
} |
} |
252 |
|
|
253 |
} |
} |
254 |
|
|
255 |
this.show_status(" for <em>"+user_filter+"</em>"); |
this.show_status(user_filter); |
256 |
|
|
257 |
} |
} |
258 |
|
|