From 988313826fac392a6965fb556efddddec902c8a6 Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Wed, 30 May 2012 09:39:59 -0400 Subject: [PATCH] Fix bug in showing/hiding filters in Trackster. --- static/scripts/trackster.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/scripts/trackster.js b/static/scripts/trackster.js index 35855d7405c..c35bc9e949b 100644 --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -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 {