1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/plugin/PlayLists/goLiveNow.js
2020-11-30 16:44:26 -03:00

32 lines
No EOL
1,008 B
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;
}
});
});