aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-22 10:25:39 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-22 10:25:39 +0200
commit11f83771beafd33e5c7dad7d8d943a8306d1aac2 (patch)
tree97e559aa7da91a9341541c140be7664f2db05418
parentbetter mobile support (diff)
downloadscout-subs-11f83771beafd33e5c7dad7d8d943a8306d1aac2.tar.gz
scout-subs-11f83771beafd33e5c7dad7d8d943a8306d1aac2.zip
fix dirty form detection
-rw-r--r--accounts/templates/accounts/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html
index 2733050..48d5bc8 100644
--- a/accounts/templates/accounts/index.html
+++ b/accounts/templates/accounts/index.html
@@ -51,7 +51,7 @@
{% endblock%}
{% block content %}
-<form action="{% url 'personal'%}" method="post" id="form" enctype="multipart/form-data">
+<form action="{% url 'personal'%}" method="post" id="form1" enctype="multipart/form-data">
<div id="personal" class="row">
<div class="col l8 offset-l2 s12">
<div class="card-panel">
@@ -127,7 +127,7 @@
</div>
</div>
<div class="fixed-action-btn">
- <a class="btn-floating btn-large teal" onclick="document.getElementById('form').submit()">
+ <a class="btn-floating btn-large teal" onclick="send('save')">
<i class="large material-icons">save</i>
</a>
</div>
@@ -325,8 +325,8 @@
{% block script %}
function send(id) {
- $('#form').trigger('reinitialize.areYouSure');
- var form = document.getElementById('form');
+ $('#form1').trigger('reinitialize.areYouSure');
+ var form = document.getElementById('form1');
var action = document.getElementById('action');
action.setAttribute('value', id);
form.submit();