mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Datatable : on init load data for the first page
This commit is contained in:
@@ -162,11 +162,13 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{% endfor %}
|
||||
],
|
||||
ajax: $.fn.dataTable.pipeline({
|
||||
url: "{{ oUIBlock.GetAjaxUrl() }}",
|
||||
data: {{ oUIBlock.GetJsonAjaxData() |raw }},
|
||||
method: "post",
|
||||
pages: 1 // number of pages to cache
|
||||
}),
|
||||
url: "{{ oUIBlock.GetAjaxUrl() }}",
|
||||
data: {{ oUIBlock.GetJsonAjaxData() |raw }},
|
||||
method: "post",
|
||||
pages: 1
|
||||
}, // number of pages to cache
|
||||
{{ oUIBlock.GetJsonData() |raw }}
|
||||
),
|
||||
createdRow: function (row, data, dataIndex) {
|
||||
if (data['@class'] !== undefined)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user