HDFS-12301. NN File Browser UI: Navigate to a path when enter is pressed
This commit is contained in:
parent
d265459024
commit
f34646d652
@ -370,6 +370,12 @@
|
|||||||
|
|
||||||
var b = function() { browse_directory($('#directory').val()); };
|
var b = function() { browse_directory($('#directory').val()); };
|
||||||
$('#btn-nav-directory').click(b);
|
$('#btn-nav-directory').click(b);
|
||||||
|
//Also navigate to the directory when a user presses enter.
|
||||||
|
$('#directory').on('keyup', function (e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
browse_directory($('#directory').val());
|
||||||
|
}
|
||||||
|
});
|
||||||
var dir = window.location.hash.slice(1);
|
var dir = window.location.hash.slice(1);
|
||||||
if(dir == "") {
|
if(dir == "") {
|
||||||
window.location.hash = "/";
|
window.location.hash = "/";
|
||||||
|
Loading…
Reference in New Issue
Block a user