Merge pull request #467 from calzoneman/confirmdelete

make sure the user understand this is for real
This commit is contained in:
Erik Little 2015-04-20 16:26:51 -04:00
commit 2aba640ec5

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
});