summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/DataTables.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables.html')
-rw-r--r--ishtar_common/templates/blocks/DataTables.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html
index 37d51cf70..711f0b7c3 100644
--- a/ishtar_common/templates/blocks/DataTables.html
+++ b/ishtar_common/templates/blocks/DataTables.html
@@ -143,7 +143,7 @@ jQuery(document).ready(function(){
}
return false;
});
- datatable_{{sname}} = jQuery("#grid_{{name}}").DataTable({
+ datatable_options = {
"ajax": {
"url": "{{source}}",
"dataSrc": "rows"
@@ -160,8 +160,10 @@ jQuery(document).ready(function(){
{ "data": "link", "orderable": false },{% for col in extra_cols %}
{ "data": "{{col}}", "defaultContent": "-"}{% if not forloop.last %},{% endif %}{% endfor %}
]
- });
+ };
+ if (datatables_i18n) datatable_options['language'] = datatables_i18n;
+ datatable_{{sname}} = jQuery("#grid_{{name}}").DataTable(datatable_options);
{% comment %}