Skip to content

Firefly III: a personal finances manager

Fix for #967

James Cole1e91be420b6d
diff --git a/public/js/ff/firefly.js b/public/js/ff/firefly.js
index 5b45995fd1..c852f35bf4 100644
--- a/public/js/ff/firefly.js
+++ b/public/js/ff/firefly.js
@@ -26,7 +26,7 @@ $(function () {
configAccounting(currencySymbol);
// on submit of form, disable any button in form:
- $('form.form-horizontal').on('submit', function () {
+ $('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
$('button[type="submit"]').prop('disabled', true);
});
diff --git a/resources/views/reports/index.twig b/resources/views/reports/index.twig
index bc9749c0ce..225fa7ab80 100644
--- a/resources/views/reports/index.twig
+++ b/resources/views/reports/index.twig
@@ -7,7 +7,7 @@
{% block content %}
<div class="row">
- <form class="form-horizontal" id="report-form" action="{{ route('reports.index.post') }}" method="post">
+ <form class="form-horizontal nodisablebutton" id="report-form" action="{{ route('reports.index.post') }}" method="post">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="box">
<div class="box-header with-border">