Skip to content

Commit ba8f93a

Browse files
jolheisertechknowlogick
authored andcommitted
Fix some SimpleMDE (#9400)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 parent 590d56d commit ba8f93a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

routers/repo/editor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) {
458458

459459
func renderUploadSettings(ctx *context.Context) {
460460
ctx.Data["RequireDropzone"] = true
461+
ctx.Data["RequireTribute"] = true
462+
ctx.Data["RequireSimpleMDE"] = true
461463
ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",")
462464
ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize
463465
ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles

routers/repo/pull.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ func ViewPullFiles(ctx *context.Context) {
588588
setPathsCompareContext(ctx, baseCommit, commit, headTarget)
589589

590590
ctx.Data["RequireHighlightJS"] = true
591+
ctx.Data["RequireSimpleMDE"] = true
591592
ctx.Data["RequireTribute"] = true
592593
if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
593594
ctx.ServerError("GetAssignees", err)

0 commit comments

Comments
 (0)