From 28de816c9c3ad97be4e6f71087ba2850ce2638db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Grou=C3=A8s?= <valentin.groues@uni.lu> Date: Tue, 25 Apr 2017 10:16:03 +0200 Subject: [PATCH] default number of subjects set to 25 in subjects table - fixes #103 --- smash/web/templates/subjects/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smash/web/templates/subjects/index.html b/smash/web/templates/subjects/index.html index 05229e97..fced7deb 100644 --- a/smash/web/templates/subjects/index.html +++ b/smash/web/templates/subjects/index.html @@ -109,6 +109,8 @@ $(function () { var table = $('#table').DataTable({ + pageLength: 25, + stateSave: true, serverSide: true, processing: true, ajax: "{% url 'web.api.subjects' list_type %}", @@ -122,7 +124,7 @@ {"data": "resigned"}, {"data": "postponed"}, {"data": "information_sent"}, - {"data": null}, + {"data": null} ], columnDefs: [{ "targets": 9, -- GitLab