Changeset 39dc0a6 in OpenWorkouts-current for ow/templates/profile.pt


Ignore:
Timestamp:
Mar 12, 2019, 11:20:44 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
e52a502
Parents:
3ac70ca
Message:

(#7) Pass in the selector name for the calendar heatmap tooltip container
when building an "instance" of the calendar chart code.

(#7) Fixed a bug in the fade in/out of the heatmap tooltip (tooltip display
were queued so the tooltip keep fading in and out for a while after the
user did stop moving around on the chart)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/profile.pt

    r3ac70ca r39dc0a6  
    5353          <div class="calendar-heatmap js-calendar-heatmap">
    5454          </div>
    55           <div class="calendar-heatmap-tooltip js-calendar-heatmap-tooltip">
     55          <div class="calendar-heatmap-tooltip js-ch-tooltip">
    5656            <ul class="profile-data">
    5757              <li>
     
    489489     var heatmap_chart = owjs.calendar_heatmap_chart({
    490490         chart_selector: 'div.js-calendar-heatmap',
     491         tooltip_selector: '.js-ch-tooltip',
    491492         url: "${request.resource_url(user, 'month')}",
    492493         // Trick to have all those shortened day names translated
Note: See TracChangeset for help on using the changeset viewer.