Skip to content

Commit 7b48d3b

Browse files
author
Akshay Paghdar
committed
Fixed preview link issue
1 parent cbfedbc commit 7b48d3b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

assets/admin/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
background:transparent;
3737
box-shadow: none;
3838
}
39+
.file-explorer .jstree-anchor:hover,
3940
.file-explorer .jstree-anchor.jstree-clicked.jstree-hovered,
4041
.file-explorer .jstree-anchor.jstree-hovered {
4142
background: #e7f4f9;

includes/post-types/contentsView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function listFolderFiles($dir, $url = '') {
118118
$output .= '<div class="tree-file">';
119119
$output .= '<span class="file-name">' . $ff.'</span>';
120120
$output .= '<div class="file-actions">';
121-
$output .= '<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first">javascript:void(0)" onclick="window.open(\'' . $file_url . '\', \'_blank\');"" title="'.__('Preview', 'drophtml').'" target="_blank"><i class="dashicons dashicons-visibility"></i></a>';
121+
$output .= '<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%3Cspan+class%3D"x x-first">'.$file_url.'" target="_blank" title="'.__('Preview', 'drophtml').'" target="_blank"><i class="dashicons dashicons-visibility"></i></a>';
122122
if ($this->isAllowEdit($dir . '/' . $ff)) {
123123
$output .= '<a href="javascript:void(0)" title="'.__('Edit', 'drophtml').'" class="edit-tree-file" data-ext="'.$this->getFileExt($ff).'" data-slug="'.$fileSlug.'" data-file="' . $file_path . '" data-state="0"><i class="dashicons dashicons-edit"></i></a>';
124124
}

0 commit comments

Comments
 (0)