aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-05 14:13:18 +0100
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:30:56 +0100
commit4df7ef0b3d703ac3380404749e9c0bc801c3e0b8 (patch)
treebf228fd84a92e03543f898df6a7bb3308333de04 /tpl
parent9596cb130d59003deffbd07defbde77dd2bb0368 (diff)
downloadShaarli-4df7ef0b3d703ac3380404749e9c0bc801c3e0b8.tar.gz
Shaarli-4df7ef0b3d703ac3380404749e9c0bc801c3e0b8.tar.zst
Shaarli-4df7ef0b3d703ac3380404749e9c0bc801c3e0b8.zip
Bugfixes on link deletion, and use a GET form
Use a GET form to delete links: harmonize with edit_link and preparation for #585 Bug fixes: * LinkDB element can't be passed as reference, fix error: PHP Notice: Indirect modification of overloaded element of LinkDB has no effect * Resource cache folder setting wasn't set correctly
Diffstat (limited to 'tpl')
-rw-r--r--tpl/linklist.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index 9782cff6..70c9cf79 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -86,10 +86,9 @@
86 <input type="hidden" name="edit_link" value="{$value.linkdate}"> 86 <input type="hidden" name="edit_link" value="{$value.linkdate}">
87 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"> 87 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
88 </form><br> 88 </form><br>
89 <form method="POST" class="buttoneditform"> 89 <form method="GET" class="buttoneditform">
90 <input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
91 <input type="hidden" name="token" value="{$token}"> 90 <input type="hidden" name="token" value="{$token}">
92 <input type="hidden" name="delete_link"> 91 <input type="hidden" name="delete_link" value="{$value.linkdate}">
93 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" 92 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
94 class="button_delete" onClick="return confirmDeleteLink();"> 93 class="button_delete" onClick="return confirmDeleteLink();">
95 </form> 94 </form>