mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
Fix add to playlist
This commit is contained in:
parent
a38a78f8db
commit
783f8beefb
2 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
var closeplaylist;
|
var closeplaylist;
|
||||||
function showPlaylistDialog(e, item_type, item_id) {
|
function showPlaylistDialog(e, item_type, item_id) {
|
||||||
closePlaylistDialog();
|
$("#playlistdialog").dialog("close");
|
||||||
|
|
||||||
var parent = this;
|
var parent = this;
|
||||||
parent.itemType = item_type;
|
parent.itemType = item_type;
|
||||||
|
@ -64,14 +64,14 @@ function showPlaylistDialog(e, item_type, item_id) {
|
||||||
|
|
||||||
function overlayclickclose() {
|
function overlayclickclose() {
|
||||||
if (closeplaylist) {
|
if (closeplaylist) {
|
||||||
$('#playlistdialog').dialog('close');
|
$("#playlistdialog").dialog("close");
|
||||||
}
|
}
|
||||||
closeplaylist = 1;
|
closeplaylist = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePlaylistDialog() {
|
function handlePlaylistAction(url, id) {
|
||||||
|
ajaxPut(url, id);
|
||||||
$("#playlistdialog").dialog("close");
|
$("#playlistdialog").dialog("close");
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************/
|
/***************************************************/
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo AmpConfig::get('ajax_url').'?page=playlist&action=append_item&item_type='.$_REQUEST['item_type'].'&item_id='.$_REQUEST['item_id']; ?>" onclick="return closePlaylistDialog();">
|
<a href="javascript:void(0);" id="rb_append_dplaylist_new" onclick="handlePlaylistAction('<?php echo AmpConfig::get('ajax_url').'?page=playlist&action=append_item&item_type='.$_REQUEST['item_type'].'&item_id='.$_REQUEST['item_id']; ?>', 'rb_append_dplaylist_new');">
|
||||||
<?php echo T_('Add to New Playlist'); ?>
|
<?php echo T_('Add to New Playlist'); ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
$playlist->format();
|
$playlist->format();
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo AmpConfig::get('ajax_url').'?page=playlist&action=append_item&playlist_id='.$playlist->id.'&item_type='.$_REQUEST['item_type'].'&item_id='.$_REQUEST['item_id']; ?>" onclick="return closePlaylistDialog();">
|
<a href="javascript:void(0);" id="rb_append_dplaylist_<?php echo $playlist->id; ?>" onclick="handlePlaylistAction('<?php echo AmpConfig::get('ajax_url').'?page=playlist&action=append_item&playlist_id='.$playlist->id.'&item_type='.$_REQUEST['item_type'].'&item_id='.$_REQUEST['item_id']; ?>', 'rb_append_dplaylist_<?php echo $playlist->id; ?>');">
|
||||||
<?php echo $playlist->f_name; ?>
|
<?php echo $playlist->f_name; ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue