From 53c809c7ad73c324bf2a399b4e25c1f6bf64e60e Mon Sep 17 00:00:00 2001 From: Ollie Phillips Date: Mon, 25 Mar 2019 16:42:04 +0000 Subject: [PATCH] fix action target for uploads deletes --- system/admin/handlers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/admin/handlers.go b/system/admin/handlers.go index bc46b5cb..d0818ec0 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -1560,10 +1560,11 @@ func adminPostListItem(e editor.Editable, typeName, status string) []byte { default: status = "__" + status } - + action := "/admin/edit/delete" link := `` + i.String() + `` if strings.HasPrefix(typeName, "__") { link = `` + i.String() + `` + action = "/admin/edit/upload/delete" } post := ` @@ -1572,7 +1573,7 @@ func adminPostListItem(e editor.Editable, typeName, status string) []byte { Updated: ` + updatedTime + ` ` + publishTime + ` -
+ Delete