From cb964a657b6f9b2807942652a38390219274788e Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Fri, 17 Feb 2006 22:44:05 +0000 Subject: [PATCH] Show current item number for each of the instances --- share/http/js/vlm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/http/js/vlm.js b/share/http/js/vlm.js index 69e73dcab9..c9c177776e 100644 --- a/share/http/js/vlm.js +++ b/share/http/js/vlm.js @@ -500,9 +500,10 @@ function parse_vlm_elements() var ititle = instances[i].getAttribute( 'title' ); var ichapter = instances[i].getAttribute( 'chapter' ); var iseekable = instances[i].getAttribute( 'seekable' ); + var iplaylistindex = instances[i].getAttribute( 'playlistindex' ); var item = document.createElement( "li" ); - item.appendChild( document.createTextNode( iname + ": " + istate + " " + (iposition.toFixed(2)) + "%" + " " + format_time( itime ) + "/" + format_time( ilength ) ) ); + item.appendChild( document.createTextNode( iname + ": " + istate + " (" + iplaylistindex + ") " + (iposition.toFixed(2)) + "%" + " " + format_time( itime ) + "/" + format_time( ilength ) ) ); ilist.appendChild( item ); } } -- 2.39.2