mirror of
https://github.com/jcampbell1/simple-file-manager.git
synced 2025-02-20 22:00:04 +01:00
Update index.php
This commit is contained in:
@@ -420,12 +420,12 @@ $(function(){
|
||||
function renderBreadcrumbs(path) {
|
||||
var base = "",
|
||||
$html = $('<div/>').append( $('<a href=#>Home</a></div>') );
|
||||
$.each(path.split('/'),function(k,v){
|
||||
$.each(path.split('%2F'),function(k,v){
|
||||
if(v) {
|
||||
var v_as_text = decodeURIComponent(v);
|
||||
$html.append( $('<span/>').text(' ▸ ') )
|
||||
.append( $('<a/>').attr('href','#'+base+v).text(v_as_text) );
|
||||
base += v + '/';
|
||||
base += v + '%2F';
|
||||
}
|
||||
});
|
||||
return $html;
|
||||
|
||||
Reference in New Issue
Block a user