Fix domain/record table size #463

This commit is contained in:
Khanh Ngo 2019-02-14 14:09:56 +07:00
parent 63b872f627
commit 7ba9ad68f8
No known key found for this signature in database
GPG key ID: B9AE3BAF6D5A7B22
3 changed files with 3 additions and 3 deletions

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}