diff options
author | Unknwon <u@gogs.io> | 2018-08-17 23:15:20 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-08-17 23:15:20 +0800 |
commit | ac73d43444e8332015e34bfe0230dfe04edff3c3 (patch) | |
tree | 5ff6b1dd86875ded219028f59c45c8c1e5eec9ac /pkg/context/context.go | |
parent | 33434a40d75ffc08f0e99e7a42075fdce1822840 (diff) |
repo_editor: able to trigger Git hooks (#4338)
Diffstat (limited to 'pkg/context/context.go')
-rw-r--r-- | pkg/context/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |