diff --git a/src/FunnelWeb.Web/Areas/Admin/Views/Admin/Comments.cshtml b/src/FunnelWeb.Web/Areas/Admin/Views/Admin/Comments.cshtml index cdb98aa2..cb56c1ae 100644 --- a/src/FunnelWeb.Web/Areas/Admin/Views/Admin/Comments.cshtml +++ b/src/FunnelWeb.Web/Areas/Admin/Views/Admin/Comments.cshtml @@ -36,7 +36,8 @@ <strong>Email: </strong> @comment.AuthorEmail </td> <td width="25%"> - @Html.ActionLink("Delete", "DeleteComment", "Admin", new { Area = "Admin", id = comment.Id }, null) + @Html.ActionLink("Delete", "DeleteComment", "Admin", new { Area = "Admin", id = comment.Id }, + new { onclick = "return confirm('Delete comment?');"}) @Html.ActionLink(comment.IsSpam ? "Unspam" : "Spam", "ToggleSpam", "Admin", new { Area = "Admin", id = comment.Id }, null) </td> </tr> diff --git a/src/FunnelWeb.Web/Areas/Admin/Views/Admin/PageList.cshtml b/src/FunnelWeb.Web/Areas/Admin/Views/Admin/PageList.cshtml index bc5673c7..76c6d94e 100644 --- a/src/FunnelWeb.Web/Areas/Admin/Views/Admin/PageList.cshtml +++ b/src/FunnelWeb.Web/Areas/Admin/Views/Admin/PageList.cshtml @@ -50,7 +50,7 @@ <td> @using(Html.BeginForm("DeletePage", "WikiAdmin", new { Area = "Admin", id = entry.Id }, FormMethod.Post, null)) { - <button type="submit">Delete</button> + <button type="submit" onclick="return confirm('Delete \'@entry.Title\'?');">Delete</button> } </td> </tr> diff --git a/src/FunnelWeb.Web/Areas/Admin/Views/Upload/Index.cshtml b/src/FunnelWeb.Web/Areas/Admin/Views/Upload/Index.cshtml index b196de1f..e3344c64 100644 --- a/src/FunnelWeb.Web/Areas/Admin/Views/Upload/Index.cshtml +++ b/src/FunnelWeb.Web/Areas/Admin/Views/Upload/Index.cshtml @@ -47,7 +47,8 @@ <td class="numeric">@item.FileSize</td> <td class="date">@item.Modified</td> <td> - @Html.ActionLink("Delete", "Delete", new { Area = "Admin", path = Model.PathString, filePath = item.Path, }) + @Html.ActionLink("Delete", "Delete", new { Area = "Admin", path = Model.PathString, filePath = item.Path, }, + new { onclick = "return confirm('Delete " + @item.Name + "?');"}) </td> </tr> }