Add a recent pads category in the drive

This commit is contained in:
yflory
2017-08-22 14:28:17 +02:00
parent 1752124071
commit b4864b96ac
2 changed files with 77 additions and 3 deletions

View File

@@ -413,6 +413,15 @@ define([
});
return ret;
};
exp.getRecentPads = function () {
var allFiles = files[FILES_DATA];
var sorted = Object.keys(allFiles)
.sort(function (a,b) {
return allFiles[a].atime < allFiles[b].atime;
})
.map(function (str) { return Number(str); });
return sorted;
};
/**
* OPERATIONS