Skip to content

Commit

Permalink
admin list elements: if elements not ordered by ordering disable the …
Browse files Browse the repository at this point in the history
…ordering field
  • Loading branch information
pollen8 committed Oct 12, 2011
1 parent ed33dfb commit 26044d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
$listDirn = $this->state->get('list.direction');
$saveOrder = $listOrder == 'e.ordering';


?>
<form action="<?php echo JRoute::_('index.php?option=com_fabrik&view=elements'); ?>" method="post" name="adminForm" id="adminForm">
<fieldset id="filter-bar">
Expand Down Expand Up @@ -162,7 +163,8 @@
<span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, ($item->group_id == @$this->items[$i+1]->group_id), 'elements.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php endif; ?>
<?php endif;?>
<input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>" class="text-area-order" />
<?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?>
<input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>" class="text-area-order" <?php echo $disabled?>/>
</td>
</tr>

Expand Down

0 comments on commit 26044d1

Please sign in to comment.