Skip to content

Commit

Permalink
add autocomplete input focus
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy201602 committed Jul 1, 2018
1 parent 9c11505 commit 213a857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/webterminal/batchcommandexecute.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
type: 'post',
data: {cmd: query},
success: function (result) {
<!--$('#autocomplete').unbind('keydown');-->
$('#autocomplete').typeahead('close');
$('#autocomplete').focus();
return process(result.message);
},
});
Expand All @@ -278,6 +278,7 @@
var data = $("#autocomplete").val();
var selected = $("#server_list").jstree().get_checked(true);
var i, j, r = [];
$('#autocomplete').focus();
for(i = 0, j = selected.length; i < j; i++) {
if ( selected[i].original.hasOwnProperty('ip') ){
r.push(selected[i]);
Expand Down

0 comments on commit 213a857

Please sign in to comment.