mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
[repo] new-file: fixed 'no focus' bug for ff
This commit is contained in:
@@ -875,6 +875,7 @@ $('.set-file-type').click(function() {
|
||||
var file_name = $('#add-new-file-form input[name="name"]');
|
||||
file_name.val('.' + $(this).data('filetype'));
|
||||
setCaretPos(file_name[0], 0);
|
||||
file_name.focus();
|
||||
});
|
||||
|
||||
var current_repo = [],
|
||||
|
Reference in New Issue
Block a user