1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
Daniel Neto 2024-09-13 23:40:29 -03:00
parent 47cd021b08
commit 218fb1fae8
3 changed files with 6 additions and 7 deletions

View file

@ -6,7 +6,7 @@ $global['laodPlaylistScript'] = 1;
?>
<!-- <?php echo __FILE__; ?> -->
<?php if ((empty($_POST['disableAddTo'])) && (( ($advancedCustom != false) && ($advancedCustom->disableShareAndPlaylist == false)) || ($advancedCustom == false))) { ?>
<a href="#" class="<?php echo $btnClass; ?>" id="addBtn<?php echo $videos_id . $crc; ?>" onclick="actionButtonClick(this, '<?php echo $videos_id; ?>', '<?php echo $crc; ?>'); return false;" data-toggle="tooltip" title="<?php echo __("Add to"); ?>">
<a href="#" class="<?php echo $btnClass; ?>" id="addBtn<?php echo $videos_id . $crc; ?>" onclick="actionButtonPlaylistClick(this, '<?php echo $videos_id; ?>', '<?php echo $crc; ?>'); return false;" data-toggle="tooltip" title="<?php echo __("Add to"); ?>">
<span class="fa fa-plus"></span>
<?php echo __("Add to"); ?>
</a>

View file

@ -274,11 +274,6 @@ function addVideoToPlayList(videos_id, isChecked, playlists_id) {
});
}
function actionButtonClick(t, videos_id, crc){
$(t).webuiPopover();
callFunctionOrLoadScript('loadPlayLists', webSiteRootURL+'plugin/PlayLists/script.js', videos_id, crc);
}
$(function () {
if (empty(mediaId)) {
reloadPlayLists();

View file

@ -4412,3 +4412,7 @@ function callFunctionOrLoadScript(funcName, jsUrl, ...args) {
}
}
function actionButtonPlaylistClick(t, videos_id, crc){
$(t).webuiPopover();
callFunctionOrLoadScript('loadPlayLists', webSiteRootURL+'plugin/PlayLists/script.js', videos_id, crc);
}