diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-03 07:23:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-03 07:23:10 +0000 |
commit | 32180a41a11c46f30d24b6ac497601c577bf10cd (patch) | |
tree | 9f6007ca388156c28b949aeb5a204df149a4dd4c /templates/rightbar.inc.php | |
parent | eeeece05dbbcee311d9909d73a3f0b7c9bcecad4 (diff) | |
download | ampache-32180a41a11c46f30d24b6ac497601c577bf10cd.tar.gz ampache-32180a41a11c46f30d24b6ac497601c577bf10cd.tar.bz2 ampache-32180a41a11c46f30d24b6ac497601c577bf10cd.zip |
added ability to save playlists based on the active playlist, fixed the send on add playlist preference, send and clear still does not work, but its progress
Diffstat (limited to 'templates/rightbar.inc.php')
-rw-r--r-- | templates/rightbar.inc.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index 8ff3e856..82cbebac 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -18,10 +18,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + ?> <?php show_box_top(_('Active Playlist')); ?> <ul> <li><a href="<?php echo Config::get('web_path'); ?>/stream.php?action=basket"><?php echo get_user_icon('all'); ?></a></li> + <li> + <?php echo Ajax::button('?page=playlist&action=create','playlist_add',_('Save as Playlist'),'rightbar_create_playlist'); ?> + </li> <?php if (Access::check_function('batch_download')) { ?> <li> <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=tmp_playlist&id=<?php echo $GLOBALS['user']->playlist->id; ?>"> @@ -76,3 +80,16 @@ <?php echo _('Related Genre'); ?></span> </div> <?php show_box_bottom(); ?> +<?php + +// We do a little magic here to force a iframe reload depending on preference +// We do this last because we want it to load, and we want to know if there is anything +// to even pass +if ($GLOBALS['user']->prefs['playlist_method'] != 'default' AND AJAX_INCLUDE == '1' AND count($objects)) { + // Set the target + $_SESSION['iframe']['target'] = Config::get('web_path') . '/stream.php?action=basket'; + echo "<script type=\"text/javascript\">"; + echo "document.getElementById('util_iframe').contentWindow.location.reload(true);"; + echo "</script>"; +} +?> |