diff options
author | Marc Delisle <marc@infomarc.info> | 2014-12-13 14:08:27 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2014-12-13 14:08:27 +0300 |
commit | eef711f250aac3af859ba99eb476d9c92b25f4da (patch) | |
tree | 905d128ce5b72cb193b6e6ab90858a60c7c642f6 /js/console.js | |
parent | 517765872d0b9e59bd8acbfcc4ada42ed7ca57ea (diff) |
Fix coding style
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'js/console.js')
-rw-r--r-- | js/console.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/console.js b/js/console.js index 7601768ec6..ee92067ac4 100644 --- a/js/console.js +++ b/js/console.js @@ -550,7 +550,7 @@ var PMA_consoleInput = { cursorLine = text.substr(0, editor.prop("selectionStart")).split("\n").length - 1; totalLine = text.split(/\r*\n/).length; } - if (cursorLine == 0) { + if (cursorLine === 0) { upPermitted = true; } if (cursorLine == totalLine - 1) { @@ -560,7 +560,7 @@ var PMA_consoleInput = { var queryString = false; if (upPermitted && event.keyCode == 38) { // Navigate up in history - if (PMA_consoleInput._historyCount == 0) { + if (PMA_consoleInput._historyCount === 0) { PMA_consoleInput._historyPreserveCurrent = PMA_consoleInput.getText(); } nextCount = PMA_consoleInput._historyCount + 1; @@ -568,11 +568,11 @@ var PMA_consoleInput = { } else if (downPermitted && event.keyCode == 40) { // Navigate down in history - if (PMA_consoleInput._historyCount == 0) { + if (PMA_consoleInput._historyCount === 0) { return; } nextCount = PMA_consoleInput._historyCount - 1; - if (nextCount == 0) { + if (nextCount === 0) { queryString = PMA_consoleInput._historyPreserveCurrent; } else { @@ -721,10 +721,11 @@ var PMA_consoleMessages = { var $queries = $('#pma_console .content .console_message_container .query'); var length = $queries.length; var $query = $queries.eq(length - nthLast); - if (!$query || (length - nthLast) < 0) + if (!$query || (length - nthLast) < 0) { return false; - else + } else { return $query.text(); + } }, /** * Used for log new message |