From 78167c02518ff9d757741f0e8df524da300d067d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 14 Oct 2006 17:29:07 +0000 Subject: removed extra lines from ajax, down to 86, updated ajax calls, added ldap auth --- templates/javascript_refresh.inc.php | 2 +- templates/show_album.inc | 1 - templates/show_artist_box.inc.php | 7 ++++++- templates/show_localplay_control.inc.php | 21 +++++++-------------- templates/show_localplay_switch.inc.php | 4 ++-- templates/show_object_rating.inc.php | 14 +++++++------- templates/show_songs.inc | 1 - templates/sidebar.inc.php | 12 +++--------- 8 files changed, 26 insertions(+), 36 deletions(-) (limited to 'templates') diff --git a/templates/javascript_refresh.inc.php b/templates/javascript_refresh.inc.php index cd51773b..1da0c76b 100644 --- a/templates/javascript_refresh.inc.php +++ b/templates/javascript_refresh.inc.php @@ -15,7 +15,7 @@ function refresh() // entry in the visitor's history. It is provided for // those browsers that only support JavaScript 1.0. // - ajaxPut('',); + ajaxPut(''); doLoad(); } diff --git a/templates/show_album.inc b/templates/show_album.inc index 5fc28300..17ca48c5 100644 --- a/templates/show_album.inc +++ b/templates/show_album.inc @@ -47,7 +47,6 @@ $title = scrub_out($album->name) . ' -- ' . $album->f_artist;
id . "_album",array("rating_" . $album->id . "_album")); echo "id . "_album\">"; show_rating($album->id, 'album');} // end if ratings echo ""; diff --git a/templates/show_artist_box.inc.php b/templates/show_artist_box.inc.php index 5dd31a9f..20feacaa 100644 --- a/templates/show_artist_box.inc.php +++ b/templates/show_artist_box.inc.php @@ -23,7 +23,12 @@ $web_path = conf('web_path'); $title = _('Albums by') . " " . $artist->full_name; ?> -id, 'artist'); } // end if ratings ?> +id . "_artist\" style=\"display:inline;\">"; + show_rating($artist->id, 'artist'); + echo ""; +} // end if ratings ?> :
  full_name; ?>
  full_name; ?>
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index a0177603..4e83bdef 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -23,36 +23,29 @@ $web_path = conf('web_path'); $localplay = init_localplay(); -$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); -$ajax_url = $web_path . '/server/ajax.server.php'; +$required_info = conf('ajax_info'); +$ajax_url = conf('ajax_url'); ?> -
has_function('prev')) { ?> - + prev - + stop has_function('pause')) { ?> - + pause - + play has_function('next')) { ?> - + next diff --git a/templates/show_localplay_switch.inc.php b/templates/show_localplay_switch.inc.php index 32e535f9..a0ca8cd1 100644 --- a/templates/show_localplay_switch.inc.php +++ b/templates/show_localplay_switch.inc.php @@ -1,6 +1,6 @@ - onclick="ajaxPut('?action=change_play_type&type=stream','play_type');return true;"> + onclick="ajaxPut('?action=change_play_type&type=stream');return true;">

- onclick="ajaxPut('?action=change_play_type&type=localplay','play_type');return true;"> + onclick="ajaxPut('?action=change_play_type&type=localplay');return true;"> diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php index 05bd3633..7be0a870 100644 --- a/templates/show_object_rating.inc.php +++ b/templates/show_object_rating.inc.php @@ -29,10 +29,10 @@ echo "
    \n"; /* Handle the "Not rated" possibility */ if ($rating->rating == '-1') { - echo "
  • id . "_" . $rating->type . ");return true;\" title=\"don't play\" class=\"zero-stars\">
  • \n"; + echo "
  • \n"; } else { - echo "
  • id . "_" . $rating->type . ");return true;\" title=\"remove rating\" class=\"zero-stars\">
  • \n"; + echo "
  • \n"; } // decide width of rating. image is 16 px wide $width = $rating->rating*16; @@ -48,19 +48,19 @@ else echo "$rating->rating of 5\n"; //it did not like my "1-star", "2-star" ... css styles, and I changed it to this after I realized star1... would have worked :\ ?>
  • - +
  • - +
  • - +
  • - +
  • - +
diff --git a/templates/show_songs.inc b/templates/show_songs.inc index bd633811..a03d9fa1 100644 --- a/templates/show_songs.inc +++ b/templates/show_songs.inc @@ -146,7 +146,6 @@ foreach ($song_ids as $song_id) { - id . "_song",array("rating_" . $song->id . "_song")); ?> id,'song'); ?> diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php index 38fef93d..09d4fd4f 100644 --- a/templates/sidebar.inc.php +++ b/templates/sidebar.inc.php @@ -184,15 +184,9 @@ $web_path = conf('web_path');
id . "&sessid=" . session_id(); - $ajax_url = $web_path . '/server/ajax.server.php'; + $required_info = conf('ajax_info'); + $ajax_url = conf('ajax_url'); ?> - @@ -200,6 +194,6 @@ $web_path = conf('web_path'); -
  • +
  • -- cgit