Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Fixed: id of the select list mus be unique, Improve class
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst committed Sep 2, 2017
1 parent dcda9a9 commit 657462c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,14 @@
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
</td>
<td class="text-center">
<?php echo JHTML::_('select.genericlist', $transitions, 'transition_id[]', 'class="inputbox" size="1" onclick="event.stopPropagation()" onchange="Joomla.uncheckAll(this); Joomla.toggleOne(this, true); Joomla.submitform(\'articles . runTransition\');"', 'value', 'text', 0); ?>
<?php
$attribs = [
'id' => 'transition-select_'. (int) $item->id,
'list.attr' => [
'class' => 'custom-select',
'onchange' => "Joomla.submitform('articles.runTransition')"]
];
echo JHTML::_('select.genericlist', $transitions, 'transition_id[]', $attribs); ?>
</td>
<td class="has-context">
<div class="break-word">
Expand Down

0 comments on commit 657462c

Please sign in to comment.