From 5c673a35854b0f2b3bacd0fa1d53afb91fc5e832 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Tue, 13 Nov 2007 21:20:56 +0000 Subject: [PATCH] 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. --- share/http-lua/js/functions.js | 1 + share/http/js/functions.js | 1 + 2 files changed, 2 insertions(+) diff --git a/share/http-lua/js/functions.js b/share/http-lua/js/functions.js index fc2e1227ab..d9e5e5bbe9 100644 --- a/share/http-lua/js/functions.js +++ b/share/http-lua/js/functions.js @@ -643,6 +643,7 @@ function parse_playlist() { elt = elt.parentNode; if( ! elt.parentNode ) break; + pos = pos.parentNode; } if( ! elt.parentNode ) break; elt = elt.parentNode.nextSibling; diff --git a/share/http/js/functions.js b/share/http/js/functions.js index fb8c3c5070..0668d9a1ed 100644 --- a/share/http/js/functions.js +++ b/share/http/js/functions.js @@ -630,6 +630,7 @@ function parse_playlist() { elt = elt.parentNode; if( ! elt.parentNode ) break; + pos = pos.parentNode; } if( ! elt.parentNode ) break; elt = elt.parentNode.nextSibling; -- 2.39.2