From 92b66e13ce14ed548abb308dab4c1a7c39c2acfb Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 8 Dec 2019 10:01:18 +0100 Subject: [PATCH] bug fix --- rowers/templates/embedded_video.html | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index 78457458..dfd5c573 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -281,23 +281,21 @@ {{ metricsform.as_table }} - {% else %} - - {% endif %} - {% if not analysis.id %} {% endif %} - {% if analysis and user.is_authenticated and user == analysis.workout.user.user %} -

- Delete Analysis -

+ {% else %} + {% endif %} + + + +
  • @@ -326,6 +324,13 @@ {% endfor %}
  • +
  • + {% if analysis and user.is_authenticated and user == analysis.workout.user.user %} +

    + Delete Analysis +

    + {% endif %} +
  •  

    @@ -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