make sure the user understand this is for real

This commit is contained in:
Erik 2015-04-20 16:09:21 -04:00
parent b8d2d74e2f
commit 566c4c174e
1 changed files with 5 additions and 0 deletions

View File

@ -2514,6 +2514,11 @@ function formatUserPlaylistList() {
.attr("title", "Delete playlist")
.appendTo(btns)
.click(function () {
var really = confirm("Are you sure you want to delete" +
" this playlist? This cannot be undone.");
if (!really) {
return;
}
socket.emit("deletePlaylist", {
name: pl.name
});