From b18f47b0e48762468a7a60c852b1f0936c7feda2 Mon Sep 17 00:00:00 2001 From: dipsol Date: Tue, 2 Dec 2008 12:29:09 +0000 Subject: fixed ticket 281, by changing the way the data was return. Now only the button will be updated instead of the whole line. --- templates/show_duplicates.inc.php | 5 +++-- templates/show_song.inc.php | 3 +++ templates/show_song_row.inc.php | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/show_duplicates.inc.php b/templates/show_duplicates.inc.php index 73e48dc3..89837a6f 100644 --- a/templates/show_duplicates.inc.php +++ b/templates/show_duplicates.inc.php @@ -50,12 +50,13 @@ foreach ($songs as $key=>$song_id) { $song = new Song($song_id); $song->format(); - $row_key = 'duplicate_' . $song_id; + $row_key = 'duplicate_' . $song_id; + $row_btnFlipState = 'btnFlipState_' . $song_id; $current_class = ($key == '0') ? 'row-highlight' : flip_class(); $button = $song->enabled ? 'disable' : 'enable'; ?> - + f_link; ?> 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; ?> title . ' ' . _('Details')); ?>
@@ -31,7 +32,9 @@ $icon = $song->enabled ? 'disable' : 'enable'; + id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> + id,'edit',_('Edit'),'edit_song_' . $song->id); ?> enabled ? 'disable' : 'enable'; ?> - id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> + + + id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> + -- cgit