File tree 4 files changed +26
-4
lines changed
hadoop-hdfs/src/main/webapps/hdfs
hadoop-hdfs-rbf/src/main/webapps/router 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
172
172
</ div >
173
173
174
174
< div class ="row ">
175
- < div class ="col-xs-10 col-md-10 ">
175
+ < div class ="col-xs-9 col-md-9 ">
176
176
< form onsubmit ="return false; ">
177
177
< div class ="input-group ">
178
178
< input type ="text " class ="form-control " id ="directory "/>
@@ -182,7 +182,7 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
182
182
</ div >
183
183
</ form >
184
184
</ div >
185
- < div class ="col-xs-2 col-md-2 ">
185
+ < div class ="col-xs-3 col-md-3 ">
186
186
< button type ="button " class ="btn btn-default " data-toggle ="modal "
187
187
aria-label ="New Directory " data-target ="#btn-create-directory "
188
188
title ="Create Directory " id ="btn-create-dir ">
@@ -199,6 +199,10 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
199
199
< li > < a id ="explorer-cut "> Cut</ a > </ li >
200
200
< li > < a id ="explorer-paste "> Paste</ a > </ li >
201
201
</ ul >
202
+ < button type ="button " class ="btn btn-default " data-toggle ="modal "
203
+ aria-label ="Parent Directory " title ="Parent Directory " id ="parentDir ">
204
+ < span class ="glyphicon glyphicon-level-up "> </ span >
205
+ </ button >
202
206
</ div >
203
207
</ div >
204
208
Original file line number Diff line number Diff line change 377
377
}
378
378
379
379
380
+ $ ( '#parentDir' ) . click ( function ( ) {
381
+ var current = current_directory ;
382
+ var lastIndex = current . lastIndexOf ( '/' ) ;
383
+ var parent = current . substr ( 0 , lastIndex ) ;
384
+ browse_directory ( parent ) ;
385
+ } )
386
+
380
387
function init ( ) {
381
388
dust . loadSource ( dust . compile ( $ ( '#tmpl-explorer' ) . html ( ) , 'explorer' ) ) ;
382
389
dust . loadSource ( dust . compile ( $ ( '#tmpl-block-info' ) . html ( ) , 'block-info' ) ) ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
172
172
</ div >
173
173
174
174
< div class ="row ">
175
- < div class ="col-xs-10 col-md-10 ">
175
+ < div class ="col-xs-9 col-md-9 ">
176
176
< form onsubmit ="return false; ">
177
177
< div class ="input-group ">
178
178
< input type ="text " class ="form-control " id ="directory "/>
@@ -182,7 +182,7 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
182
182
</ div >
183
183
</ form >
184
184
</ div >
185
- < div class ="col-xs-2 col-md-2 ">
185
+ < div class ="col-xs-3 col-md-3 ">
186
186
< button type ="button " class ="btn btn-default " data-toggle ="modal "
187
187
aria-label ="New Directory " data-target ="#btn-create-directory "
188
188
title ="Create Directory " id ="btn-create-dir ">
@@ -199,6 +199,10 @@ <h4 class="modal-title" id="delete-modal-title">Delete</h4>
199
199
< li > < a id ="explorer-cut "> Cut</ a > </ li >
200
200
< li > < a id ="explorer-paste "> Paste</ a > </ li >
201
201
</ ul >
202
+ < button type ="button " class ="btn btn-default " data-toggle ="modal "
203
+ aria-label ="Parent Directory " title ="Parent Directory " id ="parentDir ">
204
+ < span class ="glyphicon glyphicon-level-up "> </ span >
205
+ </ button >
202
206
</ div >
203
207
</ div >
204
208
Original file line number Diff line number Diff line change 376
376
} ) . fail ( network_error_handler ( url ) ) ;
377
377
}
378
378
379
+ $ ( '#parentDir' ) . click ( function ( ) {
380
+ var current = current_directory ;
381
+ var lastIndex = current . lastIndexOf ( '/' ) ;
382
+ var parent = current . substr ( 0 , lastIndex ) ;
383
+ browse_directory ( parent ) ;
384
+ } )
385
+
379
386
380
387
function init ( ) {
381
388
dust . loadSource ( dust . compile ( $ ( '#tmpl-explorer' ) . html ( ) , 'explorer' ) ) ;
You can’t perform that action at this time.
0 commit comments