Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Disable AJAX navigation after submitting a form on mobile version

Roland Geider19b3da7a01fe
diff --git a/wger/manager/templates/mobile/day/log.html b/wger/manager/templates/mobile/day/log.html
index 4d6b99abd..82eacb44f 100644
--- a/wger/manager/templates/mobile/day/log.html
+++ b/wger/manager/templates/mobile/day/log.html
@@ -9,7 +9,11 @@
{% block header %}{% endblock %}
{% block content %}
-<form action="{{form_action}}" method="POST" class="ym-form" style="overflow-x: auto;">
+<form action="{{form_action}}"
+ method="POST"
+ class="ym-form"
+ style="overflow-x: auto;"
+ data-ajax="false">
{% csrf_token %}
{{formset.management_form}}
diff --git a/wger/manager/templates/mobile/form.html b/wger/manager/templates/mobile/form.html
index 03e80b01e..4aa0b6493 100644
--- a/wger/manager/templates/mobile/form.html
+++ b/wger/manager/templates/mobile/form.html
@@ -28,7 +28,8 @@
<form action="{{form_action}}"
enctype="multipart/form-data"
method="post"
- class="ym-form">
+ class="ym-form"
+ data-ajax="false">
{% csrf_token %}
{% if form.non_field_errors %}