CC-4243: Playlist Builder: Remove main fade block if there are no fades to set
-fixed
This commit is contained in:
parent
3e879f390a
commit
36a080ac13
2 changed files with 1 additions and 8 deletions
|
@ -2,23 +2,15 @@
|
||||||
if (isset($this->obj)) {
|
if (isset($this->obj)) {
|
||||||
$contents = $this->obj->getContents();
|
$contents = $this->obj->getContents();
|
||||||
$count = count($contents);
|
$count = count($contents);
|
||||||
$displayFades = true;
|
|
||||||
if ($count > 0) {
|
|
||||||
if ($contents[0]['type'] == 2 && $contents[$count-1]['type'] == 2) {
|
|
||||||
$displayFades = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<button id="spl_new" class="ui-button ui-widget ui-state-default" role="button" aria-disabled="false">New</button>
|
<button id="spl_new" class="ui-button ui-widget ui-state-default" role="button" aria-disabled="false">New</button>
|
||||||
<?php if (isset($this->obj)) : ?>
|
<?php if (isset($this->obj)) : ?>
|
||||||
<button id="spl_delete" class="ui-button ui-widget ui-state-default" role="button" aria-disabled="false">Delete</button>
|
<button id="spl_delete" class="ui-button ui-widget ui-state-default" role="button" aria-disabled="false">Delete</button>
|
||||||
<?php if ($displayFades) :?>
|
|
||||||
<a href="#" id="spl_crossfade" class="ui-button ui-button-icon-only ui-widget ui-state-default crossfade-main-button" style="display:<?php echo $count > 0 ?"block;":"none;"?>">
|
<a href="#" id="spl_crossfade" class="ui-button ui-button-icon-only ui-widget ui-state-default crossfade-main-button" style="display:<?php echo $count > 0 ?"block;":"none;"?>">
|
||||||
<span class="ui-icon crossfade-main-icon"></span><span class="ui-button-text">Playlist crossfade</span>
|
<span class="ui-icon crossfade-main-icon"></span><span class="ui-button-text">Playlist crossfade</span>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if (isset($this->obj)) : ?>
|
<?php if (isset($this->obj)) : ?>
|
||||||
<button class="ui-button ui-state-default sp-save" type="button" id="save_button">Save</button>
|
<button class="ui-button ui-state-default sp-save" type="button" id="save_button">Save</button>
|
||||||
|
|
|
@ -905,6 +905,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
setPlaylistEntryEvents();
|
setPlaylistEntryEvents();
|
||||||
setCueEvents();
|
setCueEvents();
|
||||||
setFadeEvents();
|
setFadeEvents();
|
||||||
|
setFadeIcon();
|
||||||
|
|
||||||
initialEvents();
|
initialEvents();
|
||||||
setUpPlaylist();
|
setUpPlaylist();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue