Sort FT tables to the bottom since we don't have any metadata for them.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2242 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
503cca6d3b
commit
b585140c34
@ -149,8 +149,11 @@ Refine.GDataSourceUI.prototype._renderDocuments = function(o) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var docs = o.documents;
|
var docs = o.documents;
|
||||||
$.each(docs, function() { this.updatedDate = (this.updated) ? new Date(this.updated) : new Date(); });
|
$.each(docs, function() {
|
||||||
docs.sort(function(a, b) { return b.updatedDate.getTime() - a.updatedDate.getTime(); });
|
this.updatedDate = (this.updated) ? new Date(this.updated) : null;
|
||||||
|
this.updatedDateTime = (this.updatedDate) ? this.updatedDate.getTime() : 0;
|
||||||
|
});
|
||||||
|
docs.sort(function(a, b) { return b.updatedDateTime - a.updatedDateTime; });
|
||||||
|
|
||||||
for (var i = 0; i < docs.length; i++) {
|
for (var i = 0; i < docs.length; i++) {
|
||||||
renderDocument(docs[i]);
|
renderDocument(docs[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user