General code quality improvement
This commit is contained in:
parent
6f9a95f830
commit
a00c932bbc
17 changed files with 180 additions and 171 deletions
|
@ -137,7 +137,7 @@
|
|||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0,
|
||||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
"syntaxCheckerStyle": 0
|
||||
},
|
||||
"\/js\/jquery-1.11.3.min.js": {
|
||||
"fileType": 64,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue