CC-2910: Ability to collapse stream sections in "Stream Settings"

- done
- only stream 1 is expanded by default
This commit is contained in:
James 2011-10-03 17:00:39 -04:00
parent e2ff0a6a94
commit 64a46294c9
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
$s_name = "s".$this->stream_number;
?>
<h3 class="collapsible-header"><span class="arrow-icon"></span>Stream <?php echo $this->stream_number?></h3>
<div class="stream-setting-content" id="<?=$s_name?>-config">
<div class="stream-setting-content" <?php echo $this->stream_number != '1'?'style="display: none;':''?> id="<?=$s_name?>-config">
<fieldset class="padded">
<dl class="zend_form clearfix">
<dt id="<?=$s_name?>Enabled-label">

View File

@ -120,6 +120,12 @@ $(document).ready(function() {
return false;
});
$('.collapsible-header').click(function() {
$(this).next().toggle('fast');
$(this).toggleClass("close");
return false;
})
showErrorSections()