Skip to content

Commit

Permalink
Merge pull request #6547 from rossriley/fix/js-code-quality
Browse files Browse the repository at this point in the history
[3.4] Fix JS Linting Errors
  • Loading branch information
GwendolenLynch committed Apr 6, 2017
2 parents a33b274 + 8436dce commit 6a23150
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var init = {
},
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
extraKeys: {
"Ctrl-Q": function(cm){
"Ctrl-Q": function (cm) {
cm.foldCode(
cm.getCursor(),
{
Expand All @@ -72,16 +72,16 @@ var init = {
}
);
},
"Tab": function(cm) {
"Tab": function (cm) {
if (cm.somethingSelected()) {
cm.indentSelection("add");
} else {
cm.replaceSelection(cm.getOption("indentWithTabs")? "\t":
cm.replaceSelection(cm.getOption("indentWithTabs") ? "\t" :
Array(cm.getOption("indentUnit") + 1).join(" "), "end", "+input");
}
},
"Ctrl-S": function() {
$('#saveeditfile').click();
"Ctrl-S": function () {
$('#saveeditfile').click();
},
"Ctrl-H": "replaceAll",
},
Expand Down

0 comments on commit 6a23150

Please sign in to comment.