mirror of https://github.com/calzoneman/sync.git
Confirm before deleting playlist
This commit is contained in:
parent
9038238936
commit
9fd4d20a7e
|
@ -908,9 +908,12 @@ Callbacks = {
|
||||||
$("<i/>").addClass("icon-trash").appendTo(del);
|
$("<i/>").addClass("icon-trash").appendTo(del);
|
||||||
(function(li) {
|
(function(li) {
|
||||||
del.click(function() {
|
del.click(function() {
|
||||||
socket.emit("deletePlaylist", {
|
var go = confirm("Are you sure you want to delete playlist '" + li.data("pl-name") + "'?");
|
||||||
name: li.data("pl-name")
|
if(go) {
|
||||||
});
|
socket.emit("deletePlaylist", {
|
||||||
|
name: li.data("pl-name")
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})(li);
|
})(li);
|
||||||
if(hasPermission("playlistaddlist")) {
|
if(hasPermission("playlistaddlist")) {
|
||||||
|
|
Loading…
Reference in New Issue