bug fix
This commit is contained in:
@@ -281,23 +281,21 @@
|
||||
{{ metricsform.as_table }}
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
<input type="hidden" id="id_delay" value="{{ analysis.delay }}">
|
||||
{% endif %}
|
||||
|
||||
{% if not analysis.id %}
|
||||
<input type="submit" name="reload_button" value="Reload">
|
||||
{% endif %}
|
||||
<input type="submit" name="save_button" value="Save">
|
||||
|
||||
{% if analysis and user.is_authenticated and user == analysis.workout.user.user %}
|
||||
<p>
|
||||
<a href="/rowers/video/{{ analysis.id }}/delete/">Delete Analysis</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<input type="hidden" id="id_delay" value="{{ analysis.delay }}">
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="grid_2" >
|
||||
@@ -326,6 +324,13 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="grid_2">
|
||||
{% if analysis and user.is_authenticated and user == analysis.workout.user.user %}
|
||||
<p>
|
||||
<a href="/rowers/video/{{ analysis.id }}/delete/">Delete Analysis</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
<p> </p>
|
||||
@@ -355,7 +360,7 @@
|
||||
// lock
|
||||
var lock = document.getElementById("lock");
|
||||
var output = document.getElementById("id_delay");
|
||||
var cookie = readCookie("lock");
|
||||
var cookie = readCookie("lock{{ workout.id }}");
|
||||
var delay = output.value;
|
||||
if (cookie=="true") {
|
||||
lock.checked = true;
|
||||
@@ -526,10 +531,10 @@
|
||||
lock.oninput = function() {
|
||||
if (this.checked) {
|
||||
output.disabled = true;
|
||||
createCookie("lock","true",0);
|
||||
createCookie("lock{{ workout.id}}","true",0);
|
||||
} else {
|
||||
output.disabled = false;
|
||||
createCookie("lock","false",0);
|
||||
createCookie("lock{{ workout.id }}","false",0);
|
||||
}
|
||||
}
|
||||
// Slider start stop
|
||||
|
||||
Reference in New Issue
Block a user