mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
https://github.com/WWBN/AVideo/issues/4237
This commit is contained in:
parent
31295962d7
commit
05852f7045
7 changed files with 1627 additions and 177 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue