1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

wiki-mode:opening file in new window (#2792)

This commit is contained in:
杨顺强
2019-01-09 10:22:13 +08:00
committed by Daniel Pan
parent 24bd69b64a
commit ea465a2f4a

View File

@@ -63,7 +63,8 @@ class DirOperationToolbar extends React.Component {
onEditClick = (e) => {
e.preventDefault();
let { path, repoID } = this.props;
window.location.href= siteRoot + 'lib/' + repoID + '/file' + path + '?mode=edit';
let url = siteRoot + 'lib/' + repoID + '/file' + path + '?mode=edit';
window.open(url);
}
onNewDraft = (e) => {