From e510cab9cd85e9824c6e80ec280b69df5dd7cae6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 27 Nov 2017 18:14:29 +0100 Subject: JQueryJqGrid replacement by DataTables --- ishtar_common/templates/base.html | 8 +- ishtar_common/templates/blocks/DataTables.html | 276 +++++++++++++++++++++ .../blocks/window_tables/dynamic_documents.html | 5 +- 3 files changed, 284 insertions(+), 5 deletions(-) create mode 100644 ishtar_common/templates/blocks/DataTables.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 948c3ee59..aefba8f73 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -16,9 +16,8 @@ {# #} - - - + + + diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html index 891cd0f6f..4846d6e4f 100644 --- a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html +++ b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html @@ -17,7 +17,9 @@ setTimeout( function(){ - $("#grid_{{name}}").jqGrid({ + $("#grid_{{name}}").DataTable(); + {% comment %} + { url:'{{source|safe}}', datatype: "json", mtype: 'GET', @@ -42,6 +44,7 @@ setTimeout( } }); {% if large %}jQuery("#grid_{{name}}").jqGrid('setGridHeight', 272);{% endif %} + {% endcomment %} }, 200); -- cgit v1.2.3