Commit 79a3d667 authored by Antoine Cellerier's avatar Antoine Cellerier

* Makefile.am : add new browse.xml file

 * functions.js : add option to select directories too
parent cca6fda3
...@@ -74,6 +74,7 @@ DIST_skins2 = \ ...@@ -74,6 +74,7 @@ DIST_skins2 = \
DIST_http = \ DIST_http = \
http/favicon.ico \ http/favicon.ico \
http/functions.js \ http/functions.js \
http/requests/browse.xml \
http/requests/playlist.xml \ http/requests/playlist.xml \
http/requests/status.xml \ http/requests/status.xml \
http/style.css \ http/style.css \
......
...@@ -699,6 +699,15 @@ function parse_browse_dir( ) ...@@ -699,6 +699,15 @@ function parse_browse_dir( )
pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+elt.getAttribute( 'path' )+'\');' ); pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+elt.getAttribute( 'path' )+'\');' );
} }
pos.lastChild.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) ); 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; elt = elt.nextSibling;
} }
......
...@@ -109,7 +109,7 @@ div.pl_node, a.pl_leaf { ...@@ -109,7 +109,7 @@ div.pl_node, a.pl_leaf {
div.pl_node { div.pl_node {
font-style: italic; font-style: italic;
} }
a.pl_leaf, a.browser { a.pl_leaf {
font-style: normal; font-style: normal;
color: #00f; color: #00f;
text-decoration: underline; text-decoration: underline;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment