]> source.dussan.org Git - gitea.git/commitdiff
Fix some SimpleMDE (#9400)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Wed, 18 Dec 2019 03:59:59 +0000 (21:59 -0600)
committertechknowlogick <techknowlogick@gitea.io>
Wed, 18 Dec 2019 03:59:59 +0000 (22:59 -0500)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
routers/repo/editor.go
routers/repo/pull.go

index 763429f8cffc8af3ce0ee73a8bdb1e0d6b404ba4..fec572852567d48df147f08760adc796467ebfd6 100644 (file)
@@ -458,6 +458,8 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) {
 
 func renderUploadSettings(ctx *context.Context) {
        ctx.Data["RequireDropzone"] = true
+       ctx.Data["RequireTribute"] = true
+       ctx.Data["RequireSimpleMDE"] = true
        ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",")
        ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize
        ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles
index fdce18f7a499ebd67c788e7b643ee802a5795a58..c1a2a25a38b3f8c8e049e74a6316b76e63ac124b 100644 (file)
@@ -588,6 +588,7 @@ func ViewPullFiles(ctx *context.Context) {
        setPathsCompareContext(ctx, baseCommit, commit, headTarget)
 
        ctx.Data["RequireHighlightJS"] = true
+       ctx.Data["RequireSimpleMDE"] = true
        ctx.Data["RequireTribute"] = true
        if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
                ctx.ServerError("GetAssignees", err)