1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/plugin/PlayLists/goLiveNow.js
2022-03-17 11:43:59 -03:00

32 lines
No EOL
1 KiB
JavaScript

$(document).ready(function () {
swal({
title: "Your playlist is NOT live, do you want to go live now?",
icon: "warning",
dangerMode: true,
buttons: {
goLive: true
}
}).then(function (value) {
switch (value) {
case "goLive":
//modal.showPleaseWait();
$.ajax({
url: liveLink,
success: function (response) {
if (response.error) {
avideoAlertError(response.msg);
//modal.hidePleaseWait();
} else {
avideoToast(response.msg);
setTimeout(function () {
tryToPlay(0);
//location.reload();
}, 2000);
}
}
});
break;
}
});
});