Use natural sort for domain records.

This commit is contained in:
Joachim Tingvold
2016-07-04 19:28:42 +02:00
parent 54954082c5
commit db4edb81bf
3 changed files with 124 additions and 1 deletions

View File

@ -1,6 +1,11 @@
{% extends "base.html" %}
{% block title %}<title>DNS Control Panel - DOMAIN</title>{% endblock %}
{% block scripts %}
<!-- DataTables Natural Sort -->
<script src="{{ url_for('static', filename='adminlte2/plugins/datatables/extensions/NaturalSort/natural.js.min') }}"></script>
{% endblock %}
{% block dashboard_stat %}
<section class="content-header">
<h1>
@ -143,7 +148,10 @@
"language": {
"lengthMenu": " _MENU_ records"
},
"retrieve" : true
"retrieve" : true,
"columnDefs": [
{ type: 'natural', targets: [0, 4] }
]
});
// handle delete button