summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-05 02:52:57 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-05 02:52:57 +0000
commitab0e89b8dd232cca8b583f515a5ddf22c24cf9f9 (patch)
tree3df4b9637add2bdde716c0a442e518d4e1af2688 /templates
parentd3840c7de09f2b8d4e06ba91d94459d9baccee4e (diff)
downloadampache-ab0e89b8dd232cca8b583f515a5ddf22c24cf9f9.tar.gz
ampache-ab0e89b8dd232cca8b583f515a5ddf22c24cf9f9.tar.bz2
ampache-ab0e89b8dd232cca8b583f515a5ddf22c24cf9f9.zip
fixed multi-genre random play
Diffstat (limited to 'templates')
-rw-r--r--templates/show_random.inc.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php
index 5cfdc9a0..64415570 100644
--- a/templates/show_random.inc.php
+++ b/templates/show_random.inc.php
@@ -19,7 +19,7 @@
*/
?>
-<form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php">
+<form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php?action=get_advanced">
<?php show_box_top(_('Play Random Selection')); ?>
<table class="table-data" cellspacing="0" cellpadding="3">
<tr>
@@ -76,12 +76,20 @@
</tr>
<tr>
<td colspan="4">
- <?php echo Ajax::text("?page=random&action=advanced_random",_('Enqueue'),'advanced_random_enqueue','random','button'); ?>
+ <input type="submit" value="<?php echo _('Enqueue'); ?>" />
</td>
</tr>
</table>
<?php show_box_bottom(); ?>
</form>
<div id="browse">
-
+<?php
+ if (is_array($object_ids)) {
+ Browse::reset_filters();
+ Browse::set_type('song');
+ Browse::save_objects($object_ids);
+ Browse::show_objects();
+ echo Ajax::observe('window','load',Ajax::action('?action=refresh_rightbar','playlist_refresh_load'));
+ }
+?>
</div>