mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
General code quality improvement
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user