Commit 86d923e5 authored by Kevin Mentzoni Halvarsson's avatar Kevin Mentzoni Halvarsson
Browse files

changed text. if an exercise is cancelled during editing, favorite checkbox is...

changed text. if an exercise is cancelled during editing, favorite checkbox is set back to original state
parent f1b603f6
Pipeline #115474 passed with stages
in 58 seconds
......@@ -36,7 +36,7 @@
</div>
<div class="col-lg-6"></div>
<div class="col-lg-6">
<label for="favorite" class="form-label">Favoritt</label>
<label for="favorite" class="form-label">Set as favorite</label>
<input type="checkbox" id="favorite" name="favorite" value="Sett som favoritt" disabled="disabled">
</div>
<div class="col-lg-6"></div>
......
......@@ -21,7 +21,7 @@ function handleCancelButtonDuringEdit() {
if (oldFormData.has("name")) form.name.value = oldFormData.get("name");
if (oldFormData.has("description")) form.description.value = oldFormData.get("description");
if (oldFormData.has("unit")) form.unit.value = oldFormData.get("unit");
favorite.checked = favoriteOriginalState;
oldFormData.delete("name");
oldFormData.delete("description");
oldFormData.delete("unit");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment