Changeset a596867 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 28, 2019, 9:50:55 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
3ea428a
Parents:
cef474f
Message:

(#68) Weeks for the current month were displayed in the wrong part of the
yearly activity chart in the profile page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/static/js/ow.js

    rcef474f ra596867  
    278278    function get_name_for_x(d) {
    279279        if (d.week == undefined || d.week == 0) {
     280            // Monthly chart or first week of the weekly chart, return
     281            // the name of the month, which will be shown in the x-axis
     282            // ticks
    280283            return d.name;
    281284        }
    282285        else {
    283             return d.id.split('-')[2];
     286            // Weekly chart, week other than the first, return the id so
     287            // we can place it in the chart, we won't show this to the
     288            // user
     289            return d.id
    284290        }
    285291    }
Note: See TracChangeset for help on using the changeset viewer.