fixing encoding for links
This commit is contained in:
@@ -405,7 +405,7 @@ $(function(){
|
||||
}
|
||||
function renderFileRow(data) {
|
||||
var $link = $('<a class="name" />')
|
||||
.attr('href', data.is_dir ? '#' + encodeURIComponent(data.path) : './'+ encodeURIComponent(data.path))
|
||||
.attr('href', data.is_dir ? '#' + encodeURIComponent(data.path) : './' + data.path)
|
||||
.text(data.name);
|
||||
var allow_direct_link = <?php echo $allow_direct_link?'true':'false'; ?>;
|
||||
if (!data.is_dir && !allow_direct_link) $link.css('pointer-events','none');
|
||||
|
||||
Reference in New Issue
Block a user