General code quality improvement

This commit is contained in:
Unknwon 2016-08-16 23:06:38 -07:00
parent 6f9a95f830
commit a00c932bbc
17 changed files with 180 additions and 171 deletions

View file

@ -137,7 +137,7 @@
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
"syntaxCheckerStyle": 0
},
"\/js\/jquery-1.11.3.min.js": {
"fileType": 64,

View file

@ -736,7 +736,6 @@ function initEditor() {
}).trigger('keyup');
editArea = $('.repository.editor textarea#edit_area');
if (!editArea.length)
return;
@ -779,9 +778,8 @@ function initEditor() {
}
// Else we are going to use CodeMirror
if (!cmEditor) {
if (!setCodeMirror())
return;
if (!cmEditor && !setCodeMirror()) {
return;
}
if (mode) {