Private
Public Access
1
0

fixed bug in flex chart

This commit is contained in:
Sander Roosendaal
2017-11-01 19:57:49 +01:00
parent 255f4df8d1
commit 75ce561289
3 changed files with 5 additions and 2 deletions

View File

@@ -147,14 +147,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>

View File

@@ -6672,8 +6672,11 @@ def workout_flexchart3_view(request,*args,**kwargs):
yparam2 = 'hr' yparam2 = 'hr'
if not request.user.is_anonymous(): if not request.user.is_anonymous():
r = getrower(request.user)
if favoritenr>=0 and r.showfavoritechartnotes: if favoritenr>=0 and r.showfavoritechartnotes:
favoritechartnotes = favorites[favoritenr].notes favoritechartnotes = favorites[favoritenr].notes
else:
favoritechartnotes = ''
else: else:
favoritechartnotes = '' favoritechartnotes = ''
favoritenr = 0 favoritenr = 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB