1
0
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:
llj
2013-10-31 17:09:02 +08:00
parent 8aa06146d8
commit b100c82805

View File

@@ -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 = [],