Fix some issues with playlist/smart-block fade buttons

This commit is contained in:
Duncan Sommerville 2015-09-08 16:39:33 -04:00
parent 5c7d9fe31c
commit 8c3f1cf535
3 changed files with 10 additions and 10 deletions

View file

@ -43,10 +43,10 @@ if (isset($this->obj)) {
<div class='btn-group'>
<button class="btn" title='<?php echo _("Shuffle playlist") ?>' type="button" id="playlist_shuffle_button"><?php echo _("Shuffle") ?></button>
</div>
<div class='btn-group' style="display:<?php echo $count > 0 ?"inherit;":"none;"?>">
<a href="#" id="spl_crossfade" class="btn crossfade-main-button">
<div class='btn-group'>
<button id="spl_crossfade" class="btn crossfade-main-button" <?php if ($count <= 0) echo "disabled=disabled"; ?>>
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
</a>
</button>
</div>
<div class='btn-group'>
<button class="btn btn-danger" title='<?php echo _("Empty playlist content") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>

View file

@ -51,10 +51,10 @@ if (isset($this->obj)) {
<div class='btn-group'>
<?php echo $this->form->getElement('shuffle_button');?>
</div>
<div class='btn-group' style="display:<?php echo ($this->obj->isStatic() && $count > 0) ?"inherit;":"none;"?>">
<a href="#" id="spl_crossfade" class="btn crossfade-main-button">
<div class='btn-group'>
<button id="spl_crossfade" class="btn crossfade-main-button" <?php if (!$this->obj->isStatic() || $count <= 0) echo "disabled=disabled"; ?>>
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
</a>
</button>
</div>
<div class='btn-group'>
<button class="btn btn-danger" title='<?php echo _("Remove all content from this smart block") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>