mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Fix tooltips in datatables and add events to datatables init and draw actions
This commit is contained in:
@@ -108,6 +108,7 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{
|
||||
$(this).closest('.dataTables_wrapper').find('.dataTables_paginate, .dataTables_info').show();
|
||||
}
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('drawn');
|
||||
},
|
||||
{% endif %}
|
||||
rowId: "id",
|
||||
@@ -183,6 +184,7 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
this.parent().find('.dataTables_paginate').hide();
|
||||
this.parent().find('.dataTables_length').hide();
|
||||
}
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('inited');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -46,5 +46,11 @@ $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
sortable: true
|
||||
},
|
||||
{% endfor %}
|
||||
]
|
||||
],
|
||||
initComplete: function () {
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('inited');
|
||||
},
|
||||
drawCallback: function(){
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('drawn');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user