diff options
author | dipsol <dipsol@ampache> | 2008-12-02 13:05:56 +0000 |
---|---|---|
committer | dipsol <dipsol@ampache> | 2008-12-02 13:05:56 +0000 |
commit | 6500941b585e9c364cce828e70928b85a5dfcc4b (patch) | |
tree | 017ea0a9f1371069eb557acb9ebd05d95c3677dd | |
parent | b18f47b0e48762468a7a60c852b1f0936c7feda2 (diff) | |
download | ampache-6500941b585e9c364cce828e70928b85a5dfcc4b.tar.gz ampache-6500941b585e9c364cce828e70928b85a5dfcc4b.tar.bz2 ampache-6500941b585e9c364cce828e70928b85a5dfcc4b.zip |
Changed some name, because of the conventions.
-rw-r--r-- | server/song.ajax.php | 2 | ||||
-rw-r--r-- | templates/show_duplicates.inc.php | 4 | ||||
-rw-r--r-- | templates/show_song.inc.php | 4 | ||||
-rw-r--r-- | templates/show_song_row.inc.php | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/server/song.ajax.php b/server/song.ajax.php index 99f8d3d1..a9c34723 100644 --- a/server/song.ajax.php +++ b/server/song.ajax.php @@ -38,7 +38,7 @@ switch ($_REQUEST['action']) { $song->format(); //Return the new Ajax::button - $id = 'btnFlipState_' . $song->id; + $id = 'button_flip_state_' . $song->id; $button = $song->enabled ? 'disable' : 'enable'; $results[$id] = Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$button,_(ucfirst($button)),'flip_state_' . $song->id); diff --git a/templates/show_duplicates.inc.php b/templates/show_duplicates.inc.php index 89837a6f..96121f1c 100644 --- a/templates/show_duplicates.inc.php +++ b/templates/show_duplicates.inc.php @@ -51,12 +51,12 @@ $song = new Song($song_id); $song->format(); $row_key = 'duplicate_' . $song_id; - $row_btnFlipState = 'btnFlipState_' . $song_id; + $button_flip_state_id = 'button_flip_state_' . $song_id; $current_class = ($key == '0') ? 'row-highlight' : flip_class(); $button = $song->enabled ? 'disable' : 'enable'; ?> <tr id="<?php echo $row_key; ?>" class="<?php echo $current_class; ?>"> - <td class="cel_disable" id="<?php echo($row_btnFlipState); ?>"> + <td class="cel_disable" id="<?php echo($button_flip_state_id); ?>"> <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id,$button,_(ucfirst($button)),'flip_state_' . $song_id); ?> </td> <td class="cel_song"><?php echo $song->f_link; ?></td> diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index 8c1911f4..45f8c90c 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -20,7 +20,7 @@ */ $rowparity = flip_class(); $icon = $song->enabled ? 'disable' : 'enable'; -$row_btnFlipState = 'btnFlipState_' . $song->id; +$button_flip_state_id = 'button_flip_state_' . $song->id; ?> <?php show_box_top($song->title . ' ' . _('Details')); ?> <dl class="song_details"> @@ -32,7 +32,7 @@ $row_btnFlipState = 'btnFlipState_' . $song->id; <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&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); ?>"> + <span id="<?php echo($button_flip_state_id); ?>"> <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> </span> <?php } ?> diff --git a/templates/show_song_row.inc.php b/templates/show_song_row.inc.php index 3129b5d4..812019f1 100644 --- a/templates/show_song_row.inc.php +++ b/templates/show_song_row.inc.php @@ -48,8 +48,8 @@ <?php if (Access::check('interface','75')) { ?> <?php echo Ajax::button('?action=show_edit_object&type=song&id=' . $song->id,'edit',_('Edit'),'edit_song_' . $song->id); ?> <?php $icon = $song->enabled ? 'disable' : 'enable'; ?> - <?php $row_btnFlipState = 'btnFlipState_' . $song_id; ?> - <span id="<?php echo($row_btnFlipState); ?>"> + <?php $button_flip_state_id = 'button_flip_state_' . $song_id; ?> + <span id="<?php echo($button_flip_state_id); ?>"> <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> </span> <?php } ?> |