mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-01 15:14:11 +01:00
Change da77439 events to use DataTables builtin events instead of custom ones
This commit is contained in:
@@ -454,7 +454,7 @@ class TableDetailsAttachmentsRenderer extends AbstractAttachmentsRenderer
|
||||
$sTableId = $oAttachmentTableBlock->GetId();
|
||||
$this->oPage->add_script(
|
||||
<<<JS
|
||||
$('#$sTableId').on('inited drawn', function(){
|
||||
$('#$sTableId').on('init.dt draw.dt', function(){
|
||||
CombodoTooltip.InitAllNonInstantiatedTooltips($(this), true);
|
||||
});
|
||||
JS
|
||||
|
||||
@@ -108,7 +108,6 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{
|
||||
$(this).closest('.dataTables_wrapper').find('.dataTables_paginate, .dataTables_info').show();
|
||||
}
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('drawn');
|
||||
},
|
||||
{% endif %}
|
||||
rowId: "id",
|
||||
@@ -184,7 +183,6 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
this.parent().find('.dataTables_paginate').hide();
|
||||
this.parent().find('.dataTables_length').hide();
|
||||
}
|
||||
$('#{{ oUIBlock.GetId() }}').trigger('inited');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -46,11 +46,5 @@ $('#{{ 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