Artifact b7b3dc622fb3b30343539e0e92b787247f9a81eb:
- File s2/require.d/fsl/timeline/basic.s2 — part of check-in [a1dabf682d] at 2014-08-12 15:19:52 on branch trunk — added missing file. (user: stephan size: 547)
/** require() module which returns an array of Object from the event table. It includes all fields from the event table plus uuid. */ return Fossil.require( ['fsl/context', 'fsl/db/repo'], proc(fsl, repo){ var rc = []; repo.each({ mode: 0, sql:<<<_SQL SELECT e.*, b.uuid FROM event e JOIN blob b ON e.objid=b.rid ORDER BY mtime DESC LIMIT 5 _SQL, callback:proc(){ rc[] = this; } }); return rc; });