mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
99075df495
commit
e5afdee3c2
6 changed files with 100 additions and 0 deletions
|
@ -1107,6 +1107,20 @@ function avideoModalIframeRemove() {
|
|||
}
|
||||
}
|
||||
|
||||
function avideoResponse(response) {
|
||||
if(response.error){
|
||||
if(!response.msg){
|
||||
response.msg = 'Error';
|
||||
}
|
||||
avideoAlertError(response.msg);
|
||||
}else{
|
||||
if(!response.msg){
|
||||
response.msg = 'Success';
|
||||
}
|
||||
avideoToastSuccess(response.msg);
|
||||
}
|
||||
}
|
||||
|
||||
function avideoAlertText(msg) {
|
||||
avideoAlert("", msg, '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue