mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 23:56:18 +00:00
[dir view] rename: fix
This commit is contained in:
@@ -24,6 +24,7 @@ define([
|
||||
var $input = this.$('[name="newname"]');
|
||||
var dot_index = this.dirent.get('obj_name').lastIndexOf('.');
|
||||
if (!this.dirent.get('is_dir') && dot_index != -1) {
|
||||
$input[0].focus();
|
||||
$input[0].setSelectionRange(0, dot_index);
|
||||
} else {
|
||||
$input.select();
|
||||
|
Reference in New Issue
Block a user