1
0
Fork 0

issue #1000: AQL Editor: Autofocus textarea

This commit is contained in:
Jan Steemann 2014-08-27 10:58:01 +02:00
parent 9489a3cd50
commit 4568c094c9
1 changed files with 4 additions and 0 deletions

View File

@ -615,6 +615,10 @@
$("#" + element).parent().addClass("active");
$(divId).addClass("active");
$(contentDivId).show();
if (switchId === 'query-switch') {
// issue #1000: set focus to query input
$('#aqlEditor .ace_text-input').focus();
}
} else {
$("#" + element).parent().removeClass("active");
$(divId).removeClass("active");