Skip to content
Snippets Groups Projects
Commit 01279afb authored by Tim Repke's avatar Tim Repke
Browse files

fixed bug where date sorting was not working in admin list and admin wl

parent a69fdcfa
No related branches found
No related tags found
No related merge requests found
......@@ -326,8 +326,7 @@ $text .=<<<END
}
},
{ type: 'dedate', targets: [1,5,6]},
{ type: 'link', targets: 2 },
{ type: 'link', targets: 0 },
{ type: 'link', targets: [0, 2] }
{ type: 'prb', targets: $buttoncol }
],
"order": [[ 2, "asc" ]],
......
......@@ -167,13 +167,21 @@ END;
else
return a;
}
,
"dedate-pre": function(a){
var tmp = a.split(".");
console.log(tmp[2]+tmp[1]+tmp[0]);
if(tmp.length>2)
return (tmp[2]+tmp[1]+tmp[0]);
return a;
}
} );
var ltab;
$(document).ready(function(){
ltab = $('#mlist').DataTable({
"columnDefs": [
{ type: 'link', targets: 2 },
{ type: 'link', targets: 11 }
{ type: 'dedate', targets: [1,5,6]},
{ type: 'link', targets: [2, 11] }
],
"order": [[ 11, "desc" ], [1,"asc" ]],
"paging": false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment