File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed
singularity/views/templates Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -149,17 +149,19 @@ <h3>Files</h3>
149149 . on ( "mouseover" , showFiles ) ;
150150
151151 nodeEnter . append ( "image" )
152- . attr ( "xlink:href" , function ( d ) {
153- if ( d . _children . length > 0 ) {
154- return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png" ;
155- } else {
156- return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png" ;
157- }
158- } )
159152 . attr ( "x" , "-8px" )
160153 . attr ( "y" , "-8px" )
161154 . attr ( "width" , "24px" )
162- . attr ( "height" , "24px" ) ;
155+ . attr ( "height" , "24px" )
156+ . attr ( "xlink:href" , function ( d ) {
157+ if ( d . _children != null ) {
158+ if ( d . _children . length > 0 ) {
159+ return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png" ;
160+ } else {
161+ return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png" ;
162+ }
163+ }
164+ } ) ;
163165
164166 nodeEnter . append ( "circle" )
165167 . attr ( "r" , 1e-6 )
Original file line number Diff line number Diff line change @@ -149,17 +149,19 @@ <h3>Files</h3>
149149 . on ( "mouseover" , showFiles ) ;
150150
151151 nodeEnter . append ( "image" )
152- . attr ( "xlink:href" , function ( d ) {
153- if ( d . _children . length > 0 ) {
154- return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png" ;
155- } else {
156- return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png" ;
157- }
158- } )
159152 . attr ( "x" , "-8px" )
160153 . attr ( "y" , "-8px" )
161154 . attr ( "width" , "24px" )
162- . attr ( "height" , "24px" ) ;
155+ . attr ( "height" , "24px" )
156+ . attr ( "xlink:href" , function ( d ) {
157+ if ( d . _children != null ) {
158+ if ( d . _children . length > 0 ) {
159+ return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder-blue.png" ;
160+ } else {
161+ return "https://github.com/vsoch/singularity-python/raw/v2.5/singularity/views/static/img/folder.png" ;
162+ }
163+ }
164+ } ) ;
163165
164166 nodeEnter . append ( "circle" )
165167 . attr ( "r" , 1e-6 )
You can’t perform that action at this time.
0 commit comments