Update index.php

This commit is contained in:
drumscream
2019-03-25 12:06:35 +03:00
parent ffa13be2a8
commit 695a6aac94

View File

@@ -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;