show and hide file content of scheduled items.
This commit is contained in:
parent
37c96d3695
commit
a4fb54cd01
|
@ -1,15 +1,12 @@
|
|||
<?php if(count($this->showContent) > 0) : ?>
|
||||
<?php foreach($this->showContent as $pl) : ?>
|
||||
<li id="g_<?php echo $pl["pl_group"] ?>" class="ui-widget-content">
|
||||
<h3>
|
||||
<li id="g_<?php echo $pl["pl_group"] ?>">
|
||||
<div>
|
||||
<span><?php echo $pl["pl_name"] ?></span>
|
||||
<span><?php echo $pl["pl_length"] ?></span>
|
||||
</div>
|
||||
<div><?php echo $pl["pl_creator"] ?></div>
|
||||
<div><?php echo $pl["pl_description"] ?></div>
|
||||
</h3>
|
||||
<div>
|
||||
<div class="group_list" style="display:none">
|
||||
<div class="sched_description"><?php echo $pl["pl_description"] ?></div>
|
||||
<?php foreach($pl["pl_content"] as $file) : ?>
|
||||
<div>
|
||||
<span><?php echo $file["f_name"] ?></span>
|
||||
|
@ -18,9 +15,11 @@
|
|||
<div><?php echo $file["f_artist"] ?></div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<li>No Playlists</li>
|
||||
<h3><a href="#">Empty</a></h3>
|
||||
<div>No Playlists</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
|
@ -219,11 +219,20 @@ function makeScheduleDialog(dialog, json, show) {
|
|||
|
||||
$("#schedule_playlist_chosen")
|
||||
.empty()
|
||||
.append(json.chosen);
|
||||
.append(json.chosen)
|
||||
.find("li")
|
||||
.click(function(){
|
||||
$(this).find(".group_list").toggle();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
dialog.find("#schedule_playlist_chosen li")
|
||||
.click(function(){
|
||||
$(this).find(".group_list").toggle();
|
||||
});
|
||||
}
|
||||
|
||||
function openScheduleDialog(show) {
|
||||
|
|
Loading…
Reference in New Issue