summaryrefslogtreecommitdiffstats
path: root/templates/show_song.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_song.inc.php')
-rw-r--r--templates/show_song.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php
index e8857f64..8c1911f4 100644
--- a/templates/show_song.inc.php
+++ b/templates/show_song.inc.php
@@ -20,6 +20,7 @@
*/
$rowparity = flip_class();
$icon = $song->enabled ? 'disable' : 'enable';
+$row_btnFlipState = 'btnFlipState_' . $song->id;
?>
<?php show_box_top($song->title . ' ' . _('Details')); ?>
<dl class="song_details">
@@ -31,7 +32,9 @@ $icon = $song->enabled ? 'disable' : 'enable';
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&amp;song_id=<?php echo $song->id; ?>"><?php echo get_user_icon('download'); ?></a>
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
+ <span id="<?php echo($row_btnFlipState); ?>">
<?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?>
+ </span>
<?php } ?>
</dd>
<?php