Add progress bar to the queue
This commit is contained in:
parent
d357b30f9d
commit
8ed50d0b08
3 changed files with 29 additions and 0 deletions
|
|
@ -3037,3 +3037,28 @@ function showChannelSettings() {
|
|||
|
||||
$("#channeloptions").modal();
|
||||
}
|
||||
|
||||
// There is a point where this file needed to stop and we have clearly passed
|
||||
// it but let's keep going and see what happens
|
||||
|
||||
function startQueueSpinner() {
|
||||
if ($("#queueprogress").length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var progress = $("<div/>").addClass("progress").attr("id", "queueprogress");
|
||||
var progressBar = $("<div/>").addClass("progress-bar progress-bar-striped active")
|
||||
.attr({
|
||||
role: "progressbar",
|
||||
"aria-valuenow": "100",
|
||||
"aria-valuemin": "0",
|
||||
"aria-valuemax": "100",
|
||||
}).css({
|
||||
width: "100%"
|
||||
}).appendTo(progress);
|
||||
progress.appendTo($("#addfromurl"));
|
||||
}
|
||||
|
||||
function stopQueueSpinner() {
|
||||
$("#queueprogress").remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue