mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
tree rename dialog - focus filename without extension
focus only the relevant part of the filename on rename dialog this selects all prior to the first dot in the filename
This commit is contained in:
parent
5c18ecb151
commit
23cc03ed9d
@ -663,7 +663,12 @@ define([
|
||||
return false;
|
||||
}
|
||||
});
|
||||
input.focus().select();
|
||||
input.focus();
|
||||
if (input.val().indexOf(".") > 0) {
|
||||
input[0].setSelectionRange(0,input.val().indexOf("."));
|
||||
} else {
|
||||
input.select();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user