Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Sep 14, 2024
1 parent 0f89b7e commit 47cd021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/PlayLists/actionButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
?>
<!-- <?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="$(this).webuiPopover();callFunctionOrLoadScript('loadPlayLists', '<?php echo getURL('plugin/PlayLists/script.js'); ?>', '<?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="actionButtonClick(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>
Expand Down
5 changes: 5 additions & 0 deletions plugin/PlayLists/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ 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();
Expand Down

0 comments on commit 47cd021

Please sign in to comment.