1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

feat: sdoc support list history (#5457)

* feat: sdoc support list history

* Feat: git add .

* feat: update code

* feat: update code
This commit is contained in:
杨国璇
2023-04-27 10:36:49 +08:00
committed by GitHub
parent cbc174a23f
commit 8b83ce0196
7 changed files with 316 additions and 7 deletions

View File

@@ -1536,6 +1536,11 @@ export const Utils = {
updateTabTitle: function(content) {
const title = document.getElementsByTagName('title')[0];
title.innerText = content;
},
generateHistoryURL: function(siteRoot, repoID, path) {
if (!siteRoot || !repoID || !path) return '';
return siteRoot + 'repo/file_revisions/' + repoID + '/?p=' + this.encodePath(path);
}
};