Commit 5c673a35 authored by dionoea's avatar dionoea
Browse files

Fix error in javascript "playlist xml" -> html routine which messed up display...

Fix error in javascript "playlist xml" -> html routine which messed up display of playlist with nodes 2 or more deep which didn't have any leaves.
parent ee9cedc7
...@@ -643,6 +643,7 @@ function parse_playlist() ...@@ -643,6 +643,7 @@ function parse_playlist()
{ {
elt = elt.parentNode; elt = elt.parentNode;
if( ! elt.parentNode ) break; if( ! elt.parentNode ) break;
pos = pos.parentNode;
} }
if( ! elt.parentNode ) break; if( ! elt.parentNode ) break;
elt = elt.parentNode.nextSibling; elt = elt.parentNode.nextSibling;
......
...@@ -630,6 +630,7 @@ function parse_playlist() ...@@ -630,6 +630,7 @@ function parse_playlist()
{ {
elt = elt.parentNode; elt = elt.parentNode;
if( ! elt.parentNode ) break; if( ! elt.parentNode ) break;
pos = pos.parentNode;
} }
if( ! elt.parentNode ) break; if( ! elt.parentNode ) break;
elt = elt.parentNode.nextSibling; elt = elt.parentNode.nextSibling;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment