mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°4529 - Object list: Count in header not updated when refreshing through the icon
This commit is contained in:
@@ -23,7 +23,8 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{orderable: false, targets: 0}
|
||||
],
|
||||
{% endif %}
|
||||
drawCallback: function () {
|
||||
drawCallback: function (settings) {
|
||||
$(this).closest('.ibo-panel').find('.ibo-datatable--result-count').html(settings.json.recordsTotal);
|
||||
// Hiding pagination if only one page
|
||||
if ($(this).closest('.dataTables_wrapper').find('.dataTables_paginate:last .paginate_button:not(.previous):not(.next)').length < 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user