Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Make filter work more smoothly, add a hint

  • Loading branch information...
1 parent f044e0a commit ed015f2b003c0fa855a9b10dfafe5fb3ccccc262 Jordan Evans committed
5 railroad/static/js/functions.js
@@ -314,7 +314,10 @@ function sortGraphs(name, reversed) {
function filterGraphs(lowValue, highValue) {
var meta = $('#graphs').data('meta');
- $('.service_row').hide();
+ // We don't want to hide graphs if there is nothing to filter by
+ if (lowValue || highValue) {
+ $('.service_row').hide();
+ }
for (var i=0; i < meta.length; i++) {
if (!meta[i].isGraphed) {
drawGraph(elem, meta[i].data);
3  railroad/templates/form.html
@@ -49,6 +49,9 @@
<ul class="liButtons">
<li id="filter">Filter</li
><li id="unfilter">Unfilter</li>
+ <span class="hint" id="filterhint">
+ You can filter by min, max, or both. If a value of 0 is used then the filter will ignore it. The unfilter button takes the graphs back to how they were.
+ </span>

0 comments on commit ed015f2

Please sign in to comment.
Something went wrong with that request. Please try again.