diff options
| author | Martin Ridgers <[email protected]> | 2024-12-12 14:27:33 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-12-12 14:27:33 +0100 |
| commit | 774eb5623fe23137b70a673cfda7365f2ab53d13 (patch) | |
| tree | 17cd46389ede42fb6d9146dd86ed1af15ce957be /src/zenserver/frontend/html/pages/entry.js | |
| parent | 5.5.16-pre1 (diff) | |
| download | zen-774eb5623fe23137b70a673cfda7365f2ab53d13.tar.xz zen-774eb5623fe23137b70a673cfda7365f2ab53d13.zip | |
Dashboard: view -> list rename, table style fix, file name appended to downloads (#264)
* Single-column tables could overflow their maximum width
* Suffix oplog entry data's file name when downloading
* Renamed "view" link to "list"
* Ensure all undesirable characters are removed from page name
* Updated embedded frontend Zip archive
* Wrote some entries into the changelog
Diffstat (limited to 'src/zenserver/frontend/html/pages/entry.js')
| -rw-r--r-- | src/zenserver/frontend/html/pages/entry.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenserver/frontend/html/pages/entry.js b/src/zenserver/frontend/html/pages/entry.js index a0e3ee915..65a3ef39b 100644 --- a/src/zenserver/frontend/html/pages/entry.js +++ b/src/zenserver/frontend/html/pages/entry.js @@ -120,11 +120,13 @@ export class Page extends ZenPage const row = table.add_row(file_name, size, raw_size); + var base_name = file_name.split("/").pop().split("\\").pop(); const project = this.get_param("project"); const oplog = this.get_param("oplog"); const link = row.get_cell(0).link( "/" + ["prj", project, "oplog", oplog, io_hash].join("/") ); + link.first_child().attr("download", `${io_hash}_${base_name}`); const do_nothing = () => void(0); const action_tb = new Toolbar(row.get_cell(-1), true); |