From 566c4c174e996aff149e7d77ac871da7446a6623 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 20 Apr 2015 16:09:21 -0400 Subject: [PATCH] make sure the user understand this is for real --- www/js/util.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/js/util.js b/www/js/util.js index b24387de..38b86088 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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 });