diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2011-05-26 19:08:50 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2011-05-26 19:08:50 -0400 |
commit | 0fbeda90479df56924c6693d766bc9252a3b6a3b (patch) | |
tree | ba0ea4e21dd3ce5b3e3b0a8546597518406ec26f /templates | |
parent | 7c491ec1c7d5ca20cbbd8d6d1ed0de9be967a1bd (diff) | |
download | ampache-0fbeda90479df56924c6693d766bc9252a3b6a3b.tar.gz ampache-0fbeda90479df56924c6693d766bc9252a3b6a3b.tar.bz2 ampache-0fbeda90479df56924c6693d766bc9252a3b6a3b.zip |
UI fix for toggling artwork
Diffstat (limited to 'templates')
-rw-r--r-- | templates/browse_filters.inc.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/browse_filters.inc.php b/templates/browse_filters.inc.php index 2d3076eb..38632778 100644 --- a/templates/browse_filters.inc.php +++ b/templates/browse_filters.inc.php @@ -51,11 +51,6 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path'); <input id="unplayedCB" type="checkbox" <?php echo $string = $browse->get_filter('unplayed') ? 'checked="checked"' : ''; ?>/> <label id="unplayedLabel" for="unplayedCB"><?php echo _('Unplayed'); ?></label><br /> <?php } ?> -<?php if (in_array('show_art',$allowed_filters)) { ?> - <input id="show_artCB" type="checkbox" <?php echo $string = $browse->get_filter('show_art') ? 'checked="checked"' : ''; ?>/> - <label id="show_artLabel" for="show_artCB"><?php echo _('Show Art'); ?></label><br /> - <?php echo Ajax::observe('show_artCB','click',Ajax::action('?page=browse&action=show_art&browse_id=' . $browse->id, '')); ?> -<?php } // if show_art ?> <?php if (in_array('playlist_type',$allowed_filters)) { ?> <input id="show_allplCB" type="checkbox" <?php echo $string = $browse->get_filter('playlist_type') ? 'checked="checked"' : ''; ?>/> <label id="show_allplLabel" for="showallplCB"><?php echo _('All Playlists'); ?></label><br /> @@ -99,5 +94,9 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path'); <?php echo Ajax::observe('catalog_select','click',Ajax::action('?page=browse&action=browse&browse_id=' . $browse->id,'catalog_select','catalog_choice'),'1'); ?> </form> <?php } ?> +<?php if (in_array('show_art',$allowed_filters)) { ?> + <input id="show_artCB" class="button" type="submit" value="<?php echo _('Toggle Artwork'); ?>" <?php echo $string = $browse->get_filter('show_art') ? 'selected="selected"' : ''; ?>/> + <?php echo Ajax::observe('show_artCB','click',Ajax::action('?page=browse&action=show_art&browse_id=' . $browse->id, '')); ?> +<?php } // if show_art ?> </div> </li> |