diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-15 15:53:22 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-15 15:53:22 +0300 |
commit | 69636b75d73c9b7f4ba58dd27cac8d08745c7d4b (patch) | |
tree | b5c82db7ef4a7cd7efca62f7e995552b19e00956 /js/console.js | |
parent | 8620242e68e91055a6741300a3df83860926cab8 (diff) |
Improve coding style
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
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); } } |