Fix bug in showing/hiding filters in Trackster.

This commit is contained in:
Jeremy Goecks
2012-05-30 09:39:59 -04:00
parent 329fecda5d
commit 988313826f
+4 -2
View File
@@ -2598,8 +2598,10 @@ extend(NumberFilter.prototype, {
* Update filter's slider.
*/
update_ui_elt: function () {
// Only show filter if min != max because filter is not useful otherwise.
if (this.min !== this.max) {
// Only show filter if min < max because filter is not useful otherwise. This
// covers all corner cases, such as when min, max have not been defined and
// when min == max.
if (this.min < this.max) {
this.parent_div.show();
}
else {