forked from DGNum/gestioCOF
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>
|
<li><b>Comptes</b> {{ filter_form.accounts }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="buttons">
|
||||||
|
<button class="btn btn-primary" id="btn-fetch">Valider</button>
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -71,7 +74,7 @@ $(document).ready(function() {
|
||||||
data['accounts'] = accounts;
|
data['accounts'] = accounts;
|
||||||
|
|
||||||
khistory.fetch(data).done(function () {
|
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);
|
$('#nb_opes').text(nb_opes);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -106,7 +109,7 @@ $(document).ready(function() {
|
||||||
countSelected: "# sur %"
|
countSelected: "# sur %"
|
||||||
});
|
});
|
||||||
|
|
||||||
$("input").on('dp.change change', function() {
|
$("#btn-fetch").on('click', function() {
|
||||||
khistory.reset();
|
khistory.reset();
|
||||||
getHistory();
|
getHistory();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue