From ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sat, 26 Jan 2013 03:00:32 -0500 Subject: Cosmetics: death to tabs The refactoring I've been doing has reminded me of my strong preference for spaces, and I feel inclined to impose my will on the tree. --- templates/show_random.inc.php | 100 +++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'templates/show_random.inc.php') diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php index 07df7a72..538888c7 100644 --- a/templates/show_random.inc.php +++ b/templates/show_random.inc.php @@ -1,5 +1,5 @@ /random.php?action=get_advanced&type="> - - - + + +
 
@@ -34,20 +34,20 @@ - ' . - $i . "\n"; - } - echo "\t\t\t" . '\n"; + foreach(array(1, 5, 10, 20, 30, 50, 100, 500, 1000) as $i) { + echo "\t\t\t" . '\n"; + } + echo "\t\t\t" . '\n"; ?> - + @@ -56,22 +56,22 @@ @@ -81,16 +81,16 @@ @@ -106,13 +106,13 @@
set_type('song'); - $browse->save_objects($object_ids); - $browse->show_objects(); - $browse->store(); - echo Ajax::observe('window','load',Ajax::action('?action=refresh_rightbar','playlist_refresh_load')); - } + if (is_array($object_ids)) { + $browse = new Browse(); + $browse->set_type('song'); + $browse->save_objects($object_ids); + $browse->show_objects(); + $browse->store(); + echo Ajax::observe('window','load',Ajax::action('?action=refresh_rightbar','playlist_refresh_load')); + } ?>
-- cgit