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:
parent
cca6fda35d
commit
79a3d6676e
@ -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 \
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user