1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
(result) => {} is an arrow function which is completely unsupported in IE. To fix this you'll have to use a traditional anonymous function:
This commit is contained in:
DanielnetoDotCom 2020-09-28 10:22:33 -03:00
parent 11b1ee26f7
commit 6a55614103
25 changed files with 32 additions and 33 deletions

View file

@ -373,7 +373,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({
@ -524,7 +524,7 @@ if (!empty($ad_server_location)) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -138,7 +138,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -506,7 +506,7 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -185,7 +185,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -168,7 +168,7 @@ if (!User::canStream()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -253,7 +253,7 @@ $obj = AVideoPlugin::getObjectData("Live");
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -168,7 +168,7 @@
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -180,7 +180,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -227,7 +227,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -164,7 +164,7 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -154,7 +154,7 @@ if ($manageMeetings) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
$.ajax({

View file

@ -18,7 +18,7 @@ if (empty($video['id'])) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -34,7 +34,7 @@ if(!User::userCanBlockUser($users_id, true)){
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
@ -70,7 +70,7 @@ if(!User::userCanBlockUser($users_id, true)){
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -34,7 +34,7 @@ if(!User::userCanBlockUser($users_id, true)){
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
@ -70,7 +70,7 @@ if(!User::userCanBlockUser($users_id, true)){
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -103,7 +103,7 @@ if (!User::isAdmin()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -134,7 +134,7 @@ $obj = AVideoPlugin::getObjectDataIfEnabled("YPTWallet");
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -425,7 +425,7 @@
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
@ -457,7 +457,7 @@
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -434,7 +434,7 @@ if (count($programs) <= 1 || !empty($palyListsObj->expandPlayListOnChannels)) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();
@ -469,7 +469,7 @@ if (count($programs) <= 1 || !empty($palyListsObj->expandPlayListOnChannels)) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -127,7 +127,7 @@ function isYoutubeDl() {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
window.location.href = '<?php echo $global['webSiteRootURL']; ?>mvideos';
}

View file

@ -556,8 +556,7 @@ function playerPlay(currentTime) {
className: "btn-danger",
},
}
})
.then((value) => {
}).then(function(value) {
switch (value) {
case "unmute":
player.muted(false);

View file

@ -198,7 +198,7 @@
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {

View file

@ -87,7 +87,7 @@
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -1596,7 +1596,7 @@ echo AVideoPlugin::getManagerVideosReset();
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
avideoAlert("Deleted!", "", "success");
modal.showPleaseWait();
@ -1916,7 +1916,7 @@ if (AVideoPlugin::isEnabledByName('PlayLists')) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
deleteVideo(row.id);
}

View file

@ -155,7 +155,7 @@ if (empty($_COOKIE) && get_browser_name()!=='Other (Unknown)') {
$(document).ready(function () {
$('#login<?php echo $uid; ?>').click(function () {
modal.showPleaseWait();
if (inIframe()) {
if (typeof inIframe !== 'undefined' && inIframe()) {
var popup = window.open('<?php echo $oauthURL; ?>', 'loginYPT');
var popupTick = setInterval(function() {
if (popup.closed) {
@ -252,7 +252,7 @@ if (!empty($advancedCustomUser->forceLoginToBeTheEmail)) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();

View file

@ -305,7 +305,7 @@ if (User::canSeeCommentTextarea()) {
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
.then(function(willDelete) {
if (willDelete) {
modal.showPleaseWait();