diff options
Diffstat (limited to 'js/console.js')
-rw-r--r-- | js/console.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/js/console.js b/js/console.js index 351a0dee42..2675742a86 100644 --- a/js/console.js +++ b/js/console.js @@ -543,8 +543,7 @@ var PMA_consoleInput = { if (PMA_consoleInput._codemirror) { cursorLine = editor.getCursor().line; totalLine = editor.lineCount(); - } - else { + } else { // Get cursor position from textarea var text = PMA_consoleInput.getText(); cursorLine = text.substr(0, editor.prop("selectionStart")).split("\n").length - 1; @@ -565,8 +564,7 @@ var PMA_consoleInput = { } nextCount = PMA_consoleInput._historyCount + 1; queryString = PMA_consoleMessages.getHistory(nextCount); - } - else if (downPermitted && event.keyCode == 40) { + } else if (downPermitted && event.keyCode == 40) { // Navigate down in history if (PMA_consoleInput._historyCount === 0) { return; @@ -574,8 +572,7 @@ var PMA_consoleInput = { nextCount = PMA_consoleInput._historyCount - 1; if (nextCount === 0) { queryString = PMA_consoleInput._historyPreserveCurrent; - } - else { + } else { queryString = PMA_consoleMessages.getHistory(nextCount); } } |