Browse Source

This fixes a minor bug that occurs if there is only 1 deposit for previous year.

If no min is found this makes it the same as max, only a problem for non transaction_log pages using transaction.js if there is only one deposit for the last year, not sure what will happen with 0 deposits for the last year.
devel
Jonathan Rosenbaum 5 years ago
parent
commit
824435a35f
  1. 6
      js/transaction.js

6
js/transaction.js

@ -404,6 +404,12 @@ $(function() {
// watch that percentage doesn't acquire too many decimal points.
//console.dir(range_obj);
// If no min is found this makes it the same as max
// only a problem for non transaction_log pages using transaction.js if there is only one deposit for the last year
// not sure what will happen with 0 deposits for the last year
if ( !range_obj["min"] ) {
range_obj["min"] = range_obj["max"];
}
//initialize slider
if (!slider) {

Loading…
Cancel
Save