mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3685 - Performance checks on the front end - Avoid reload
This commit is contained in:
@@ -167,7 +167,7 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
method: "post",
|
||||
pages: 1
|
||||
}, // number of pages to cache
|
||||
{{ oUIBlock.GetJsonData() |raw }}
|
||||
{{ oUIBlock.GetJsonInitDisplayData() |raw }}
|
||||
),
|
||||
createdRow: function (row, data, dataIndex) {
|
||||
if (data['@class'] !== undefined)
|
||||
@@ -300,9 +300,9 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{% endif %}
|
||||
|
||||
{% if oUIBlock.GetDisabledSelect() is not empty %}
|
||||
{% for key in oUIBlock.GetDisabledSelect() %}
|
||||
$('.selectList{{ oUIBlock.GetId() }}[value={{ key }}]').prop("disabled","disabled");
|
||||
{% endfor %}
|
||||
{% for key in oUIBlock.GetDisabledSelect() %}
|
||||
$('.selectList{{ oUIBlock.GetId() }}[value={{ key }}]').prop("disabled", "disabled");
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user