1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00

Fix add to

This commit is contained in:
daniel 2018-08-12 12:02:31 -03:00
parent 4c81993285
commit e5a95ec40f

View file

@ -26,11 +26,11 @@ function loadPlayLists(elementId, videos_id) {
}
}
$("#searchlist" + elementId).append('<a class="list-group-item"><i class="fa fa-' + icon + '"></i> <span>'
+ playList[i].name + '</span><div class="material-switch pull-right"><input id="someSwitchOptionDefault' + elementId + '" name="someSwitchOption' + playList[i].id + elementId + '" class="playListsIds' + videos_id + ' playListsIds' + videos_id + '_' + playList[i].id + ' " type="checkbox" value="'
+ playList[i].id + '" ' + checked + '/><label for="someSwitchOptionDefault' + elementId + '" class="label-success"></label></div></a>');
+ playList[i].name + '</span><div class="material-switch pull-right"><input id="someSwitchOptionDefault' + playList[i].id + elementId + '" name="someSwitchOption' + playList[i].id + elementId + '" class="playListsIds' + videos_id + ' playListsIds' + videos_id + '_' + playList[i].id + ' someSwitchOptionDefault' + elementId+' " type="checkbox" value="'
+ playList[i].id + '" ' + checked + '/><label for="someSwitchOptionDefault' + playList[i].id + elementId + '" class="label-success"></label></div></a>');
}
$('#searchlist' + elementId).btsListFilter('#searchinput' + elementId, {itemChild: 'span'});
$('#someSwitchOptionDefault' + elementId).change(function () {
$('.someSwitchOptionDefault' + elementId).change(function () {
modal.showPleaseWait();
//tmp-variables simply make the values avaible on success.
tmpPId = $(this).val();