From 72cbca926caff6226e1b464661209bbb164a53b3 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Tue, 8 Mar 2022 23:12:35 +0300 Subject: [PATCH] Fix the bug with deletion --- views/modal.qtpl | 4 ++-- views/modal.qtpl.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/views/modal.qtpl b/views/modal.qtpl index 8db2581..e53d734 100644 --- a/views/modal.qtpl +++ b/views/modal.qtpl @@ -9,7 +9,7 @@ {%= modalBegin( "delete", hyphaName, - "", + ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName))) %} {%= modalReallyWant(hyphaName, lc.Get("ui.ask_delete_verb"), lc) %}

{%s lc.Get("ui.ask_delete_tip") %}

@@ -23,7 +23,7 @@ {%= modalBegin( "remove-media", hyphaName, - "", + ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_remove_media"), beautifulLink(hyphaName))) %} {%= modalReallyWant(hyphaName, lc.Get("ui.ask_remove_media_verb"), lc) %} {%= modalEnd(hyphaName, true, lc) %} diff --git a/views/modal.qtpl.go b/views/modal.qtpl.go index 09b6eb8..a471e5a 100644 --- a/views/modal.qtpl.go +++ b/views/modal.qtpl.go @@ -41,7 +41,7 @@ func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName streammodalBegin(qw422016, "delete", hyphaName, - "", + ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName))) //line views/modal.qtpl:13 qw422016.N().S(` @@ -105,7 +105,7 @@ func StreamRemoveMediaAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hypha streammodalBegin(qw422016, "remove-media", hyphaName, - "", + ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_remove_media"), beautifulLink(hyphaName))) //line views/modal.qtpl:27 qw422016.N().S(`