Fix: history.html marche (à peu près) correctement

This commit is contained in:
Ludovic Stephan 2020-04-23 13:54:10 +02:00
parent 9eebc7fb22
commit 6362740a77

View file

@ -28,6 +28,9 @@
<li><b>Comptes</b> {{ filter_form.accounts }}</li>
</ul>
</div>
<div class="buttons">
<button class="btn btn-primary" id="btn-fetch">Valider</button>
</div>
</aside>
{% endblock %}
@ -71,7 +74,7 @@ $(document).ready(function() {
data['accounts'] = accounts;
khistory.fetch(data).done(function () {
var nb_opes = khistory.$container.find('.ope:not(.canceled)').length;
var nb_opes = khistory.$container.find('.entry:not(.canceled)').length;
$('#nb_opes').text(nb_opes);
});
}
@ -106,7 +109,7 @@ $(document).ready(function() {
countSelected: "# sur %"
});
$("input").on('dp.change change', function() {
$("#btn-fetch").on('click', function() {
khistory.reset();
getHistory();
});