From d086b8356a7d7474af00dbaa7c044518ad22895c Mon Sep 17 00:00:00 2001 From: Jacky Date: Sat, 4 Nov 2017 22:53:32 -0400 Subject: [PATCH] fix 'last modified' sorting issue #1307 --- .../modules/core/scripts/index/open-project-ui.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/index/open-project-ui.js b/main/webapp/modules/core/scripts/index/open-project-ui.js index 9c62c7910..8bb616bdc 100644 --- a/main/webapp/modules/core/scripts/index/open-project-ui.js +++ b/main/webapp/modules/core/scripts/index/open-project-ui.js @@ -218,7 +218,7 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { ); $('
') - .html(formatRelativeDate(project.date)) + .html(project.date.toISOString()) .addClass("last-modified") .attr("title", project.date.toString()) .appendTo($(tr.insertCell(tr.cells.length)).attr('width', '1%')); @@ -264,7 +264,14 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { renderProject(projects[i]); } - $(table).tablesorter(); + + $(table).tablesorter({ + headers : { + 3 : { + sorter : "time" + } + } + }); } };