Fix: history.html
marche (à peu près) correctement
This commit is contained in:
parent
9eebc7fb22
commit
6362740a77
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue