Made download cancelling process more clear
This commit is contained in:
parent
92be2a120e
commit
a3c9d06e14
@ -110,11 +110,22 @@ socket.on("finishDownload", function(uuid){
|
||||
}
|
||||
})
|
||||
|
||||
socket.on("removedAllDownloads", function(){
|
||||
socket.on("removedAllDownloads", function(currentItem){
|
||||
queueComplete = []
|
||||
if (currentItem == ""){
|
||||
queue = []
|
||||
queueList = {}
|
||||
queueComplete = []
|
||||
$("#download_list").html("")
|
||||
}else{
|
||||
queue = [currentItem, ]
|
||||
tempQueueItem = queueList[currentItem]
|
||||
queueList = {}
|
||||
queueList[currentItem] = tempQueueItem
|
||||
$(".download_object").each(function(index){
|
||||
if ($(this).attr('id') != "download_"+currentItem)
|
||||
$(this).remove()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
socket.on("removedFinishedDownloads", function(){
|
||||
|
Loading…
Reference in New Issue
Block a user