Set focus on editor when switching to 'SQL Query' view, fixes #28
This commit is contained in:
parent
9ad0ca9839
commit
5a2acda1a3
@ -174,6 +174,14 @@ function showTableStructure() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showQueryPanel() {
|
||||||
|
setCurrentTab("table_query");
|
||||||
|
editor.focus();
|
||||||
|
|
||||||
|
$("#input").show();
|
||||||
|
$("#output").removeClass("full");
|
||||||
|
}
|
||||||
|
|
||||||
function runQuery() {
|
function runQuery() {
|
||||||
setCurrentTab("table_query");
|
setCurrentTab("table_query");
|
||||||
|
|
||||||
@ -267,12 +275,7 @@ $(document).ready(function() {
|
|||||||
$("#table_structure").on("click", function() { showTableStructure(); });
|
$("#table_structure").on("click", function() { showTableStructure(); });
|
||||||
$("#table_indexes").on("click", function() { showTableIndexes(); });
|
$("#table_indexes").on("click", function() { showTableIndexes(); });
|
||||||
$("#table_history").on("click", function() { showQueryHistory(); });
|
$("#table_history").on("click", function() { showQueryHistory(); });
|
||||||
|
$("#table_query").on("click", function() { showQueryPanel(); });
|
||||||
$("#table_query").on("click", function() {
|
|
||||||
setCurrentTab("table_query");
|
|
||||||
$("#input").show();
|
|
||||||
$("#output").removeClass("full");
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#run").on("click", function() {
|
$("#run").on("click", function() {
|
||||||
runQuery();
|
runQuery();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user