1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-08 11:26:59 +02:00

* Makefile.am : add new browse.xml file

* functions.js : add option to select directories too
This commit is contained in:
Antoine Cellerier 2005-12-07 16:57:18 +00:00
parent cca6fda35d
commit 79a3d6676e
3 changed files with 11 additions and 1 deletions

View File

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

View File

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

View File

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