From 7ba9ad68f82b90f018da1af8413e928c84aa1cd5 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Thu, 14 Feb 2019 14:09:56 +0700 Subject: [PATCH] Fix domain/record table size #463 --- app/templates/dashboard.html | 2 +- app/templates/domain.html | 2 +- app/templates/template_edit.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index d7b1192..9a95fd5 100755 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -187,7 +187,7 @@ "ajax" : url, "info" : false, "autoWidth" : false, - {% if SETTING.get('default_domain_table_size') in ['10','25','50','100'] %} + {% if SETTING.get('default_domain_table_size')|string in ['10','25','50','100'] %} "lengthMenu": [ [10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], {% else %} diff --git a/app/templates/domain.html b/app/templates/domain.html index 577afa2..2c6718d 100644 --- a/app/templates/domain.html +++ b/app/templates/domain.html @@ -118,7 +118,7 @@ "ordering" : true, "info" : true, "autoWidth" : false, - {% if SETTING.get('default_record_table_size') in ['5','15','20'] %} + {% if SETTING.get('default_record_table_size')|string in ['5','15','20'] %} "lengthMenu": [ [5, 15, 20, -1], [5, 15, 20, "All"]], {% else %} diff --git a/app/templates/template_edit.html b/app/templates/template_edit.html index 9d61486..5983a34 100644 --- a/app/templates/template_edit.html +++ b/app/templates/template_edit.html @@ -104,7 +104,7 @@ "ordering" : true, "info" : true, "autoWidth" : false, - {% if SETTING.get('default_record_table_size') in ['5','15','20'] %} + {% if SETTING.get('default_record_table_size')|string in ['5','15','20'] %} "lengthMenu": [ [5, 15, 20, -1], [5, 15, 20, "All"]], {% else %}