From: Antoine Cellerier Date: Wed, 7 Dec 2005 16:57:18 +0000 (+0000) Subject: * Makefile.am : add new browse.xml file X-Git-Tag: 0.9.0-test0~12996 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=79a3d6676ee8f3b76eb1e77fefa7f9859ac0e435;p=vlc * Makefile.am : add new browse.xml file * functions.js : add option to select directories too --- diff --git a/share/Makefile.am b/share/Makefile.am index cebef072af..076b964cca 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -74,6 +74,7 @@ DIST_skins2 = \ DIST_http = \ http/favicon.ico \ http/functions.js \ + http/requests/browse.xml \ http/requests/playlist.xml \ http/requests/status.xml \ http/style.css \ diff --git a/share/http/functions.js b/share/http/functions.js index c529229cc7..edd1598061 100644 --- a/share/http/functions.js +++ b/share/http/functions.js @@ -699,6 +699,15 @@ function parse_browse_dir( ) pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+elt.getAttribute( 'path' )+'\');' ); } pos.lastChild.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) ); + if( elt.getAttribute( 'type' ) == 'directory' ) + { + pos.appendChild( document.createTextNode( ' ' ) ); + pos.appendChild( document.createElement( "a" ) ); + pos.lastChild.setAttribute( 'class', 'browser' ); + pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+elt.getAttribute( 'path' )+'\');'); + pos.lastChild.appendChild( document.createTextNode( '(select)' ) ); + } + pos.appendChild( document.createElement( "br" ) ); } elt = elt.nextSibling; } diff --git a/share/http/style.css b/share/http/style.css index 0848cc71bd..a913cc8015 100644 --- a/share/http/style.css +++ b/share/http/style.css @@ -109,7 +109,7 @@ div.pl_node, a.pl_leaf { div.pl_node { font-style: italic; } -a.pl_leaf, a.browser { +a.pl_leaf { font-style: normal; color: #00f; text-decoration: underline;