From ac73d43444e8332015e34bfe0230dfe04edff3c3 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 17 Aug 2018 23:15:20 +0800 Subject: repo_editor: able to trigger Git hooks (#4338) --- pkg/context/context.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/context/context.go') diff --git a/pkg/context/context.go b/pkg/context/context.go index 579d81d0..8b353f61 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -72,6 +72,10 @@ func (c *Context) RequireAutosize() { c.Require("Autosize") } +func (c *Context) RequireDropzone() { + c.Require("Dropzone") +} + // FormErr sets "Err_xxx" field in template data. func (c *Context) FormErr(names ...string) { for i := range names { -- cgit v1.2.3