diff options
author | silverwind <me@silverwind.io> | 2020-06-10 20:35:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 14:35:27 -0400 |
commit | 628ee1d82ed4afdae8734801be85c57d9a525322 (patch) | |
tree | 95e8448278b7cfe0a885e0e9a300cf1963a861f6 /routers/repo | |
parent | 42752f3902f53d96598e5329a30374ecc82c9a19 (diff) | |
download | gitea-628ee1d82ed4afdae8734801be85c57d9a525322.tar.gz gitea-628ee1d82ed4afdae8734801be85c57d9a525322.zip |
Replace jquery-datetimepicker with native date input (#11684)
This removes the jQuery plugin as well as the associated config options.
Native input[type=date] does not require a language attribute as it is
localized by default, except for the placeholder attribute for which I
currently piggy-back the repo.issues.due_date_form localization option.
Implementation should pretty much match GH. Of note is that Safari does
not provide a UI for this input type, but I don't think providing one is
neccessary and GH did not bother either.
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 e30e6371f0..032a848ba7 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -90,7 +90,6 @@ func NewMilestone(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.milestones.new") ctx.Data["PageIsIssueList"] = true ctx.Data["PageIsMilestones"] = true - ctx.Data["DateLang"] = setting.DateLang(ctx.Locale.Language()) ctx.HTML(200, tplMilestoneNew) } @@ -99,7 +98,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["DateLang"] = setting.DateLang(ctx.Locale.Language()) if ctx.HasError() { ctx.HTML(200, tplMilestoneNew) @@ -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["DateLang"] = setting.DateLang(ctx.Locale.Language()) m, err := models.GetMilestoneByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { @@ -160,7 +157,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["DateLang"] = setting.DateLang(ctx.Locale.Language()) if ctx.HasError() { ctx.HTML(200, tplMilestoneNew) |