1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
DanielnetoDotCom 2020-12-29 12:55:35 -03:00
parent 31295962d7
commit 05852f7045
7 changed files with 1627 additions and 177 deletions

View file

@ -865,22 +865,37 @@ function avideoToast(msg) {
$.toast(msg);
}
function avideoAlertAJAXHTML(url) {
modal.showPleaseWait();
$.ajax({
url: url,
success: function (response) {
avideoAlertText(response);
modal.hidePleaseWait();
}
});
}
function avideoAlertHTMLText(title, msg, type) {
var span = document.createElement("span");
span.innerHTML = msg;
swal({
title: title,
content: span,
type: type,
icon: type,
html: true,
closeModal: true
closeModal: true,
buttons: type?true:false,
});
}
function avideoAlertText(msg) {
avideoAlert("", msg, '');
}
function avideoAlertInfo(msg) {
avideoAlert("Info", msg, 'info');
}
function avideoAlertError(msg) {
avideoAlert("Error", msg, 'error');
}