mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +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"]');
|
var file_name = $('#add-new-file-form input[name="name"]');
|
||||||
file_name.val('.' + $(this).data('filetype'));
|
file_name.val('.' + $(this).data('filetype'));
|
||||||
setCaretPos(file_name[0], 0);
|
setCaretPos(file_name[0], 0);
|
||||||
|
file_name.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
var current_repo = [],
|
var current_repo = [],
|
||||||
|
Reference in New Issue
Block a user