diff options
author | silverwind <me@silverwind.io> | 2020-03-17 20:08:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 15:08:15 -0400 |
commit | 85fb33a65ffa9d5f0c073a01fcb5a7ef1b7311a4 (patch) | |
tree | 336f0d1af2a5ab1180d84f23c1ca58351d69222c /routers/repo | |
parent | 43c09134a972dc421aa06fb303697671c828cf67 (diff) | |
download | gitea-85fb33a65ffa9d5f0c073a01fcb5a7ef1b7311a4.tar.gz gitea-85fb33a65ffa9d5f0c073a01fcb5a7ef1b7311a4.zip |
move jquery-datetimepicker to npm/webpack (#10713)
- update to latest version and move to npm
- adapt for api changes and css class rename
- add specificity to arc-green rules as dependency css now loads later
- use imports-loader to make it load correctly
- fix some wrong paths in librejs
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/milestone.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go index 25dcd5bc93..5fbf929f35 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -88,7 +88,6 @@ func NewMilestone(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.milestones.new") ctx.Data["PageIsIssueList"] = true ctx.Data["PageIsMilestones"] = true - ctx.Data["RequireDatetimepicker"] = true ctx.Data["DateLang"] = setting.DateLang(ctx.Locale.Language()) ctx.HTML(200, tplMilestoneNew) } @@ -98,7 +97,6 @@ func NewMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) { ctx.Data["Title"] = ctx.Tr("repo.milestones.new") ctx.Data["PageIsIssueList"] = true ctx.Data["PageIsMilestones"] = true - ctx.Data["RequireDatetimepicker"] = true ctx.Data["DateLang"] = setting.DateLang(ctx.Locale.Language()) if ctx.HasError() { @@ -136,7 +134,6 @@ func EditMilestone(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.milestones.edit") ctx.Data["PageIsMilestones"] = true ctx.Data["PageIsEditMilestone"] = true - ctx.Data["RequireDatetimepicker"] = true ctx.Data["DateLang"] = setting.DateLang(ctx.Locale.Language()) m, err := models.GetMilestoneByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) @@ -161,7 +158,6 @@ func EditMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) { ctx.Data["Title"] = ctx.Tr("repo.milestones.edit") ctx.Data["PageIsMilestones"] = true ctx.Data["PageIsEditMilestone"] = true - ctx.Data["RequireDatetimepicker"] = true ctx.Data["DateLang"] = setting.DateLang(ctx.Locale.Language()) if ctx.HasError() { |