summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-21 19:35:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-21 19:35:22 +0000
commit0f5c3ddf3aa9e75289af56536806c220fec5d776 (patch)
tree3548d14b903830d4206f111e9daf671d8b78a0e8
parentc6ab824a8ad959e8f60d415f66b8ea485d0f0d18 (diff)
downloadampache-0f5c3ddf3aa9e75289af56536806c220fec5d776.tar.gz
ampache-0f5c3ddf3aa9e75289af56536806c220fec5d776.tar.bz2
ampache-0f5c3ddf3aa9e75289af56536806c220fec5d776.zip
one last little fix to the now playing ajax to prevent duplicated divs on refresh
-rw-r--r--index.php2
-rw-r--r--templates/show_now_playing.inc4
2 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php
index 6e0c0f56..ab0683bd 100644
--- a/index.php
+++ b/index.php
@@ -49,7 +49,9 @@ if (conf('refresh_limit') > 5) {
<table id="bigdaddy" style="padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;" width="100%">
<tr>
<td style="padding-left:17px;" valign="top" colspan="2">
+ <div id="nowplaying">
<?php show_now_playing(); ?>
+ </div> <!-- Close Now Playing Div -->
</td>
</tr>
<tr>
diff --git a/templates/show_now_playing.inc b/templates/show_now_playing.inc
index 52ae8656..27b903a5 100644
--- a/templates/show_now_playing.inc
+++ b/templates/show_now_playing.inc
@@ -29,8 +29,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if (count($results)) {
?>
- <!-- Start Now Playing -->
- <div id="nowplaying">
<div id="np_title">
<h1><?php echo _('Now Playing'); ?></h1>
</div>
@@ -47,6 +45,4 @@ foreach ($results as $item) {
} // end foreach
?>
- </div>
- <!-- End Now Playing -->
<?php } // end if count results ?>