aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r--routers/repo/editor.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index f91ce1b462..6a3f379f6a 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -184,6 +184,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
}
ctx.Data["PageIsEdit"] = true
+ ctx.Data["PageHasPosted"] = true
ctx.Data["IsNewFile"] = isNewFile
ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireSimpleMDE"] = true