CC-84: Smart Playlists

- removed modifier array list from form and populate in javascript
- fixed remove functionality to handle the extra criteria value used
  for 'is in the range' modifier
- moved 'add' button to last row
This commit is contained in:
denise 2012-07-12 13:02:02 -04:00
parent e8a2f23856
commit 31bb07b4f0
3 changed files with 65 additions and 36 deletions

View file

@ -26,11 +26,13 @@
<?php echo $this->element->getElement('sp_criteria_modifier_'.$i) ?>
<?php echo $this->element->getElement('sp_criteria_value_'.$i) ?>
<?php if ($i != 0) { ?>
<a href='#' id='criteria_remove_<?php echo $i ?>'>Remove</a>
<a href='#' id='criteria_remove_<?php echo $i ?>'>Remove&nbsp;</a>
<?php } else { ?>
<a href='#' id='criteria_add'>Add</a>
<?php } ?>
</div>
<?php } ?>
<a href='#' id='criteria_add'>Add</a>
</dd>
<dd id='sp_limit-element'>