]> git.sesse.net Git - vlc/commitdiff
* Makefile.am : add new browse.xml file
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 7 Dec 2005 16:57:18 +0000 (16:57 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 7 Dec 2005 16:57:18 +0000 (16:57 +0000)
 * functions.js : add option to select directories too

share/Makefile.am
share/http/functions.js
share/http/style.css

index cebef072af75822288a06d20ab81298413523fed..076b964cca04c4a934dfe7f5f07697fda97b49f2 100644 (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 \
index c529229cc7a894884ff0978007c3c5a82b2c7771..edd159806122ee88b91a5b942f0686c73c029ab8 100644 (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;
             }
index 0848cc71bdfd7041d1d7c83eeaa9ce6baed198df..a913cc80157c27b073d465e33704b0e0999616e4 100644 (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;