allow adding unsorted columns to admin via template blocks

This commit is contained in:
Min RK
2015-01-31 16:36:59 -08:00
parent 056cd0c246
commit 3acf8dd5b9
2 changed files with 16 additions and 7 deletions

View File

@@ -42,6 +42,9 @@ require(["jquery", "bootstrap", "moment", "jhapi", "utils"], function ($, bs, mo
$("th").map(function (i, th) {
th = $(th);
var col = th.data('sort');
if (!col || col.length == 0) {
return;
}
var order = th.find('i').hasClass('fa-sort-desc') ? 'asc':'desc';
th.find('a').click(
function () {