=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/_content.html'
@@ -5,6 +5,23 @@
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/demo_table_jui.css"/>
<script type="text/javascript" src="{{ STATIC_URL }}dashboard_app/js/FixedHeader.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}lava-server/js/jquery.dataTables.min.js"></script>
+<script type="text/javascript">
+jQuery.fn.dataTableExt.oSort['num-html-asc'] = function(a,b) {
+ var x = a.replace( /<.*?>/g, "" );
+ var y = b.replace( /<.*?>/g, "" );
+ x = parseFloat( x );
+ y = parseFloat( y );
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+};
+
+jQuery.fn.dataTableExt.oSort['num-html-desc'] = function(a,b) {
+ var x = a.replace( /<.*?>/g, "" );
+ var y = b.replace( /<.*?>/g, "" );
+ x = parseFloat( x );
+ y = parseFloat( y );
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+};
+</script>
{% endblock %}
=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/alljobs.html'
@@ -38,7 +38,7 @@
$("table.data").dataTable({
"bJQueryUI": true,
"aoColumnDefs": [
- { "sType": "numeric", "aTargets": [ "id" ] }
+ { "sType": "num-html", "aTargets": [ "id" ] }
]
});
}
=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/index.html'
@@ -55,7 +55,7 @@
$("table.data").dataTable({
"bJQueryUI": true,
"aoColumnDefs": [
- { "sType": "numeric", "aTargets": [ "id" ] }
+ { "sType": "num-html", "aTargets": [ "id" ] }
]
});
}