CC-84: Smart Playlists

-disabled non-visible form elements
This commit is contained in:
denise 2012-07-11 15:18:47 -04:00
parent 5fb0364f2d
commit 7358b00c81
3 changed files with 18 additions and 6 deletions

View file

@ -17,16 +17,17 @@
</dd>
<dd id='sp_criteria-element'>
<?php for($i = 1; $i <= $this->criteriasLength; $i++) {?>
<div <?php if(($i > 1) && ($this->element->getElement('sp_criteria_'.$i)->getValue() == "0" &&
$this->element->getElement('sp_criteria_modifier_'.$i)->getValue() == "0")) {
<?php for ($i = 1; $i <= $this->criteriasLength; $i++) {?>
<div <?php if (($i > 1) && ($this->element->getElement('sp_criteria_'.$i)->getAttrib('disabled') == 'disabled')) {
echo 'style=display:none';
} ?>>
<?php echo $this->element->getElement('sp_criteria_'.$i) ?>
<?php echo $this->element->getElement('sp_criteria_modifier_'.$i) ?>
<?php echo $this->element->getElement('sp_criteria_value_'.$i) ?>
<a href='#' id='criteria_remove_<?php echo $i ?>'>Remove</a>
<?php if ($i != 1) { ?>
<a href='#' id='criteria_remove_<?php echo $i ?>'>Remove</a>
<?php } ?>
</div>
<?php } ?>
<a href='#' id='criteria_add'>Add</a>