Better way to disable and reenable xfade button in playlist/sb editors

This commit is contained in:
Duncan Sommerville 2015-09-08 16:56:55 -04:00
parent 8c3f1cf535
commit e6494e7ff0
3 changed files with 5 additions and 5 deletions

View file

@ -44,7 +44,7 @@ if (isset($this->obj)) {
<button class="btn" title='<?php echo _("Shuffle playlist") ?>' type="button" id="playlist_shuffle_button"><?php echo _("Shuffle") ?></button>
</div>
<div class='btn-group'>
<button id="spl_crossfade" class="btn crossfade-main-button" <?php if ($count <= 0) echo "disabled=disabled"; ?>>
<button id="spl_crossfade" class="btn crossfade-main-button">
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
</button>
</div>

View file

@ -52,7 +52,7 @@ if (isset($this->obj)) {
<?php echo $this->form->getElement('shuffle_button');?>
</div>
<div class='btn-group'>
<button id="spl_crossfade" class="btn crossfade-main-button" <?php if (!$this->obj->isStatic() || $count <= 0) echo "disabled=disabled"; ?>>
<button id="spl_crossfade" class="btn crossfade-main-button">
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
</button>
</div>