Skip to content

Commit

Permalink
Merge pull request #6 from nicos68/master
Browse files Browse the repository at this point in the history
Fixed the delete buttons in the linklist and in the editlist page.
  • Loading branch information
alexisju authored Feb 3, 2017
2 parents ffef633 + d42fc7d commit c0e3c00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions editlink.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@
{/if}
<input type="submit" value="Save" name="save_edit" class="bigbutton">
<input type="submit" value="Cancel" name="cancel_edit" class="bigbutton">
{if="!$link_is_new"}
<a href="?delete_link&amp;lf_linkdate={$value.id}&amp;token={$token}"
title="" name="delete_link" class="bigbutton"
onClick="return confirmDeleteLink();">
{'Delete'|t}
</a>
{/if}
{if="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton delete" onClick="return confirmDeleteLink();">{/if}
<input type="hidden" name="token" value="{$token}">
{if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
</form>
Expand Down
4 changes: 2 additions & 2 deletions linklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>

{include="linklist.paging"}

<div class="clear"></div>

{if="count($links)==0"}
Expand Down Expand Up @@ -53,7 +53,7 @@
<input type="hidden" name="edit_link" value="{$value.id}">
<input type="image" alt="Edit" src="inc/img/edit_icon.png" title="Edit" class="button_edit">
</form><br>
<form method="GET" class="buttoneditform">
<form method="POST" class="buttoneditform">
<input type="hidden" name="lf_linkdate" value="{$value.id}">
<input type="hidden" name="token" value="{$token}">
<input type="hidden" name="delete_link">
Expand Down

0 comments on commit c0e3c00

Please sign in to comment.