mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
change search result is markdown open in new tab (#6820)
This commit is contained in:
@@ -1071,13 +1071,9 @@ class LibContentView extends React.Component {
|
|||||||
// load mainPanel
|
// load mainPanel
|
||||||
if (item.is_dir) {
|
if (item.is_dir) {
|
||||||
this.showDir(path);
|
this.showDir(path);
|
||||||
} else {
|
|
||||||
if (Utils.isMarkdownFile(path)) {
|
|
||||||
this.showFile(path);
|
|
||||||
} else {
|
} else {
|
||||||
this.openSearchedNewTab(item);
|
this.openSearchedNewTab(item);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (item.is_dir) {
|
if (item.is_dir) {
|
||||||
this.showDir(path);
|
this.showDir(path);
|
||||||
|
Reference in New Issue
Block a user