Skip to content

Commit

Permalink
5665 increment input elements id by one to match other id value for t…
Browse files Browse the repository at this point in the history
…he row
  • Loading branch information
gregrgay committed Mar 27, 2016
1 parent c059c09 commit f7bb21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/default/photos/admin/pa_index.tmpl.php
Expand Up @@ -23,8 +23,8 @@
<?php if(!empty($this->albums)): ?>
<?php
foreach ($this->albums as $aid=>$row): ?>
<tr id="r_<?php echo $aid; ?>" onmousedown="jQuery('#album_<?php echo $row['id']; ?>').attr('checked', true); rowselect(this);">
<td><input type="radio" id="album_<?php echo $aid; ?>" name="aid" value="<?php echo $row['id']; ?>" /></td>
<tr id="r_<?php echo ($aid+1); ?>" onmousedown="jQuery('#album_<?php echo $row['id']; ?>').attr('checked', true); rowselect(this);">
<td><input type="radio" id="album_<?php echo ($aid+1); ?>" name="aid" value="<?php echo $row['id']; ?>" /></td>
<td><a href="<?php echo AT_PA_BASENAME."admin/edit_photos.php?aid=".$row['id']; ?>"><?php echo AT_print($row['name'], 'input.text'); ?></a></td>
<td><?php echo $pa->getAlbumTypeName($row['type_id']); ?></td>
<td class="hidecol700"><?php echo AT_print($row['description'], 'photo_albums.description'); ?></td>
Expand Down

0 comments on commit f7bb21a

Please sign in to comment.