Add shortcut titles to query execute and explain buttons
This commit is contained in:
parent
a9448a8cdd
commit
533ed06eb8
@ -274,8 +274,20 @@ function initEditor() {
|
|||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addShortcutTooltips() {
|
||||||
|
if (navigator.userAgent.indexOf("OS X") > 0) {
|
||||||
|
$("#run").attr("title", "Shortcut: ⌘+Enter");
|
||||||
|
$("#explain").attr("title", "Shortcut: ⌘+E");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#run").attr("title", "Shortcut: Ctrl+Enter");
|
||||||
|
$("#explain").attr("title", "Shortcut: Ctrl+E");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
initEditor();
|
initEditor();
|
||||||
|
addShortcutTooltips();
|
||||||
|
|
||||||
$("#table_content").on("click", function() { showTableContent(); });
|
$("#table_content").on("click", function() { showTableContent(); });
|
||||||
$("#table_structure").on("click", function() { showTableStructure(); });
|
$("#table_structure").on("click", function() { showTableStructure(); });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user