From bec09378f96f45561a6da9ddec844b720957540c Mon Sep 17 00:00:00 2001 From: muhfaris Date: Mon, 15 Jan 2018 13:03:30 +0700 Subject: [PATCH] Fix Delete repository message (#3260) --- public/js/index.js | 5 ++++- templates/admin/repo/list.tmpl | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 160be5b68..9b67e5926 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1683,7 +1683,10 @@ function showDeletePopup() { filter += "#" + $this.attr("id") } - $('.delete.modal' + filter).modal({ + var dialog = $('.delete.modal' + filter); + dialog.find('.repo-name').text($this.data('repo-name')); + + dialog.modal({ closable: false, onApprove: function() { if ($this.data('type') == "form") { diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 470be359e..86d6b8042 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -37,7 +37,7 @@ {{.NumIssues}} {{SizeFmt .Size}} {{.CreatedUnix.FormatShort}} - + {{end}} @@ -55,7 +55,7 @@

{{.i18n.Tr "repo.settings.delete_desc"}}

- {{.i18n.Tr "repo.settings.delete_notices_2"}}
+ {{.i18n.Tr "repo.settings.delete_notices_2" `` | Safe}}
{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}
{{template "base/delete_modal_actions" .}}