# HG changeset patch # User Dennis Fink # Date 2015-10-22 22:51:59 # Node ID 2c3887be1f40248443722db74d50371301deb8e3 # Parent 555f1649956f18f7c605101c34f3e5d31699a86f Add autosubmit to country selectors This is done by adding onchange=this.form.submit(). By this we remove some clutter, which is unecessary, especially on small screens diff --git a/ennstatus/templates/donate/index.html b/ennstatus/templates/donate/index.html --- a/ennstatus/templates/donate/index.html +++ b/ennstatus/templates/donate/index.html @@ -70,8 +70,8 @@
{{ form.hidden_tag() }}
- {{ form.country(class_="form-control input-sm") }} - + {{ form.country(class_="form-control input-sm", onchange='this.form.submit()') }} +
diff --git a/ennstatus/templates/root/contact.html b/ennstatus/templates/root/contact.html --- a/ennstatus/templates/root/contact.html +++ b/ennstatus/templates/root/contact.html @@ -16,8 +16,8 @@ {{ form.hidden_tag()}}
{{ form.country.label }} - {{ form.country(class_="form-control input-sm") }} - + {{ form.country(class_="form-control input-sm", onchange='this.form.submit()') }} +