mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
wiki-mode:opening file in new window (#2792)
This commit is contained in:
@@ -63,7 +63,8 @@ class DirOperationToolbar extends React.Component {
|
|||||||
onEditClick = (e) => {
|
onEditClick = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let { path, repoID } = this.props;
|
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) => {
|
onNewDraft = (e) => {
|
||||||
|
Reference in New Issue
Block a user