Merge pull request #467 from calzoneman/confirmdelete
make sure the user understand this is for real
This commit is contained in:
commit
2aba640ec5
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue