Merge pull request #1309 from jackyq2015/master
fix 'last modified' sorting issue #1307
This commit is contained in:
commit
8e3c36aa42
@ -218,7 +218,7 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$('<div></div>')
|
$('<div></div>')
|
||||||
.html(formatRelativeDate(project.date))
|
.html(project.date.toISOString())
|
||||||
.addClass("last-modified")
|
.addClass("last-modified")
|
||||||
.attr("title", project.date.toString())
|
.attr("title", project.date.toString())
|
||||||
.appendTo($(tr.insertCell(tr.cells.length)).attr('width', '1%'));
|
.appendTo($(tr.insertCell(tr.cells.length)).attr('width', '1%'));
|
||||||
@ -264,7 +264,14 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
|||||||
renderProject(projects[i]);
|
renderProject(projects[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(table).tablesorter();
|
|
||||||
|
$(table).tablesorter({
|
||||||
|
headers : {
|
||||||
|
3 : {
|
||||||
|
sorter : "time"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user