Commit 6a77b85f authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

add confirmation dialog on blog deletion (bug #526736)

Signed-off-by: default avatarEvan Goldenberg <>
parent 40d6505f
<script type="text/javascript">
function confirmdelete(id) {
if(confirm("{str tag=deleteblog?}")) {
window.location = "{$WWWROOT}artefact/blog/index.php?delete=" + id;
{foreach from=$blogs->data item=blog}
<tr class="{cycle name=rows values='r0,r1'}">
......@@ -6,7 +13,7 @@
<td class="right">
<a href="{$WWWROOT}artefact/blog/settings/?id={$blog->id}" class="btn-settings">{str tag=settings}</a>
<a href="{$WWWROOT}artefact/blog/index.php?delete={$blog->id}" class="btn-del">{str tag=delete}</a>
<a onClick="confirmdelete({$blog->id});" class="btn-del">{str tag=delete}</a>
<a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn-add">{str tag=addpost}</a>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment